re PR c++/40406 (ICE with broken template member declaration)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 6 May 2010 16:07:02 +0000 (16:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 6 May 2010 16:07:02 +0000 (16:07 +0000)
2010-05-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/40406
* g++.dg/template/crash96.C: New.

From-SVN: r159112

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

index 680c4554e4e2ac293f0ff5ea0748eb7b136e1571..21fec6678dba6523c7d8449ba98e8ceb5bf69a86 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-06  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/40406
+       * g++.dg/template/crash96.C: New.
+
 2010-05-06  Jan Hubicka  <jh@suse.cz>
 
        PR tree-optimization/43791
diff --git a/gcc/testsuite/g++.dg/template/crash96.C b/gcc/testsuite/g++.dg/template/crash96.C
new file mode 100644 (file)
index 0000000..5c2aa99
--- /dev/null
@@ -0,0 +1,6 @@
+// PR c++/40406
+
+template<int> struct A
+{
+  template<int> template<int> void A::foo() {} // { dg-error "extra qualification" }
+};