From: Jason Merrill Date: Thu, 25 May 2017 21:24:48 +0000 (-0400) Subject: * g++.dg/cpp1z/nontype-auto11.C: Move from pr79583.C. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87e1e6036ef93b18b1450357488ee907db880f37;p=gcc.git * g++.dg/cpp1z/nontype-auto11.C: Move from pr79583.C. From-SVN: r248471 --- diff --git a/gcc/testsuite/g++.dg/cpp0x/pr79583.C b/gcc/testsuite/g++.dg/cpp0x/pr79583.C deleted file mode 100644 index 30cdf9fd730..00000000000 --- a/gcc/testsuite/g++.dg/cpp0x/pr79583.C +++ /dev/null @@ -1,9 +0,0 @@ -// { dg-do compile { target c++11 } } - -template < auto > // { dg-error "parameter" } -struct Outer -{ - template < int > - struct Inner { }; -}; -Outer<0> a{}; diff --git a/gcc/testsuite/g++.dg/cpp1z/nontype-auto11.C b/gcc/testsuite/g++.dg/cpp1z/nontype-auto11.C new file mode 100644 index 00000000000..ac3567696fb --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/nontype-auto11.C @@ -0,0 +1,10 @@ +// PR c++/79583 +// { dg-do compile { target c++11 } } + +template < auto > // { dg-error "parameter" "" { target c++14_down } } +struct Outer +{ + template < int > + struct Inner { }; +}; +Outer<0> a{};