[PATCH] D18653: [Sema] Diagnose template alias declaration in local class

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 31 11:02:43 PDT 2016


rsmith accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: test/CXX/temp/temp.decls/temp.mem/p2.cpp:11
@@ -10,2 +10,3 @@
     template <typename> void qux();     // expected-error{{templates cannot be declared inside of a local class}}
+    template <typename> using corge = int; // expected-error{{templates cannot be declared inside of a local class}}
   };
----------------
Can you add a test for a static data member template too, please?


http://reviews.llvm.org/D18653





More information about the cfe-commits mailing list