3 Commits

Author SHA1 Message Date
Nico Weber
843450b9a6 [clang] Try to fix check-clang after f539b6ffc251 2023-04-27 10:12:39 -04:00
Erich Keane
f539b6ffc2 [NFC] Add tests from my fix for GH62362.
This ended up being fixed separately by @rsmith in 1e43349e3 in a
better/correct way. This patch adds the tests from the original, as
though they are reasonably covered in his patch, explicit versions seem
to have value here.

Additionally, this adds a release note for 1e43349e3.
2023-04-27 06:33:34 -07:00
Richard Smith
1e43349e32 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.
2023-04-26 16:55:30 -07:00