Pass the found declaration to DiagnoseUseOfDecl.
Don't pass in the resolved declaration, because that might be an inheriting constructor declaration, which should never be used directly and for which constraint satisfaction checking doesn't work. Fixes #62361.
parent
91938200
Please register or sign in to comment