[all-commits] [llvm/llvm-project] 1e4334: Pass the found declaration to DiagnoseUseOfDecl.
Richard Smith via All-commits
all-commits at lists.llvm.org
Wed Apr 26 16:55:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1e43349e321694d7fee3d77cb691887ad67fb5d7
https://github.com/llvm/llvm-project/commit/1e43349e321694d7fee3d77cb691887ad67fb5d7
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2023-04-26 (Wed, 26 Apr 2023)
Changed paths:
M clang/lib/Sema/SemaInit.cpp
A clang/test/SemaTemplate/concepts-inherited-ctor.cpp
Log Message:
-----------
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.
More information about the All-commits
mailing list