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.
Loading
Please sign in to comment