Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-template14.C
blob6d29bdde102b85e886cc7f2afb3038d7082a1cbe
1 // PR c++/58583
2 // { dg-do compile { target c++11 } }
4 template<int> struct A
6   int i = (A<0>(), 0); // { dg-error "recursive instantiation of default" }
7 };
9 A<0> a;
11 template<int N> struct B
13   B* p = new B<N>; // { dg-error "recursive instantiation of default" }
16 B<1> x;
18 struct C
20   template<int N> struct D
21   {
22     D* p = new D<0>;            // { dg-error "" }
23   };
26 C::D<0> d;