]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* nsdmi-template14.C: Expect error for last example.
authorJason Merrill <jason@gcc.gnu.org>
Sat, 2 Feb 2019 04:19:00 +0000 (23:19 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 2 Feb 2019 04:19:00 +0000 (23:19 -0500)
From-SVN: r268470

gcc/testsuite/g++.dg/cpp0x/nsdmi-template14.C

index a885a2412796a883be99c3aae5282c664643fbc5..6d29bdde102b85e886cc7f2afb3038d7082a1cbe 100644 (file)
@@ -19,6 +19,8 @@ struct C
 {
   template<int N> struct D
   {
-    D* p = new D<0>;
+    D* p = new D<0>;           // { dg-error "" }
   };
 };
+
+C::D<0> d;