re PR c++/79583 (ICE (internal compiler error) upon instantiation of class template...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 25 May 2017 09:32:46 +0000 (09:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 25 May 2017 09:32:46 +0000 (09:32 +0000)
2017-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/79583
* g++.dg/cpp0x/pr79583.C: New.

From-SVN: r248451

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr79583.C [new file with mode: 0644]

index ae561d148d2b1aaa74d1b9ef7ce903be10f19e45..ab09dcba25b8d35eb129492e031e7dfde44c590e 100644 (file)
@@ -1,3 +1,8 @@
+2017-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/79583
+       * g++.dg/cpp0x/pr79583.C: New.
+
 2017-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/68578
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr79583.C b/gcc/testsuite/g++.dg/cpp0x/pr79583.C
new file mode 100644 (file)
index 0000000..30cdf9f
--- /dev/null
@@ -0,0 +1,9 @@
+// { dg-do compile { target c++11 } }
+
+template < auto >  // { dg-error "parameter" }
+struct Outer
+{
+  template < int >
+  struct Inner { };
+};
+Outer<0> a{};