[clang] [clang] Implement CWG2877 "Type-only lookup for using-enum-declarator" (PR #95399)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 20 16:27:12 PDT 2024


================
@@ -241,6 +238,13 @@ TPLa<int> a;
 
 } // namespace Thirteen
 
+namespace Fourteen {
+template<typename T>
+int A = T();
+
+using enum A<int>; // expected-error {{A is not an enumerated type}}
+} // namespace Fourteen
----------------
shafik wrote:

What does `Fourteen` stand for here or is it just a unique name?

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


More information about the cfe-commits mailing list