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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 20 17:06:50 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
----------------
Endilll wrote:

Yes. If you look at the rest of the file, you'll see tests `One` through `Thirteen`.

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


More information about the cfe-commits mailing list