aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorKuo, Mei-Chun <94007620+Megan0704-1@users.noreply.github.com>2025-03-12 21:52:42 -0700
committerGitHub <noreply@github.com>2025-03-13 05:52:42 +0100
commitfe0d3e3764961b62f43f1b129f30aaec5f30bc16 (patch)
tree6a9d2ed296e15b56d3920f6b7c0a3279c1de3f6f /llvm/lib/CodeGen
parent646a6e7f1088355d979be4fd58d8a56a96d1fea2 (diff)
downloadllvm-fe0d3e3764961b62f43f1b129f30aaec5f30bc16.zip
llvm-fe0d3e3764961b62f43f1b129f30aaec5f30bc16.tar.gz
llvm-fe0d3e3764961b62f43f1b129f30aaec5f30bc16.tar.bz2
[Sema] Diagnose by-value copy constructors in template instantiations (#130866)
Fixes #80963 This PR ensures Clang diagnoses by-value copy constructors in implicitly instantiated class templates (e.g., `A<int, int>(A<int, int>)`), per [class.copy.ctor]. Changes: - Remove `TSK_ImplicitInstantiation` check in `SemaDeclCXX.cpp`. - Add `!isFunctionTemplateSpecialization()` to skip templated constructors. - Add regression tests.
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions