[clang] [Clang][Sema] Diagnose use of template keyword after declarative nested-name-specifiers (PR #78595)

Krystian Stasiowski via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 07:33:05 PST 2024


================
@@ -182,8 +182,8 @@ struct Bad2 { int a, b; };
 } // namespace dr2386
 namespace std {
 template <typename T> struct tuple_size;
-template <> struct std::tuple_size<dr2386::Bad1> {};
----------------
sdkrystian wrote:

@Endilll if left unchanged this will result in a warning about redundant qualification, which I don't think is the point of the test... alternatively I can add `// expected-warning {{extra qualification on member}}`

https://github.com/llvm/llvm-project/pull/78595


More information about the cfe-commits mailing list