[all-commits] [llvm/llvm-project] f607e3: [Clang][Sema] Reject declaring an alias template w...
Valentyn Yukhymenko via All-commits
all-commits at lists.llvm.org
Fri Jan 24 23:02:02 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f607e3fd23ef0019b2f3b289b4d46012400b8db5
https://github.com/llvm/llvm-project/commit/f607e3fd23ef0019b2f3b289b4d46012400b8db5
Author: Valentyn Yukhymenko <valentin.yukhymenko at gmail.com>
Date: 2025-01-25 (Sat, 25 Jan 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/CXX/temp/temp.decls/temp.variadic/fixed-expansion.cpp
M clang/test/SemaCXX/alias-template.cpp
Log Message:
-----------
[Clang][Sema] Reject declaring an alias template with the same name as its template parameter. (#123533)
The issue occurred because the template parameter scope was skipped
too early, before diagnosing the alias name shadowing.
To fix this, the patch moves it to after LookupName, such that the behavior
remains consistent with the typedef implementation.
Fixes llvm#123423
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list