diff --git a/gcc/testsuite/g++.dg/cpp0x/nsdmi-template14.C b/gcc/testsuite/g++.dg/cpp0x/nsdmi-template14.C index a885a241279..6d29bdde102 100644 --- a/gcc/testsuite/g++.dg/cpp0x/nsdmi-template14.C +++ b/gcc/testsuite/g++.dg/cpp0x/nsdmi-template14.C @@ -19,6 +19,8 @@ struct C { template struct D { - D* p = new D<0>; + D* p = new D<0>; // { dg-error "" } }; }; + +C::D<0> d;