aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-05-06 16:07:02 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-05-06 16:07:02 +0000
commit1017e3e654a23d624ca6e4cb23ad98220ee59e71 (patch)
treec2e3a09ecd6429b4de0ca1c76adb8b47185f2608
parente97580ceb355ddae7a4119ed92bd48cd3b6fcb66 (diff)
downloadgcc-1017e3e654a23d624ca6e4cb23ad98220ee59e71.zip
gcc-1017e3e654a23d624ca6e4cb23ad98220ee59e71.tar.gz
gcc-1017e3e654a23d624ca6e4cb23ad98220ee59e71.tar.bz2
re PR c++/40406 (ICE with broken template member declaration)
2010-05-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/40406 * g++.dg/template/crash96.C: New. From-SVN: r159112
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/crash96.C6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 680c455..21fec66 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..5c2aa99
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/crash96.C
@@ -0,0 +1,6 @@
+// PR c++/40406
+
+template<int> struct A
+{
+ template<int> template<int> void A::foo() {} // { dg-error "extra qualification" }
+};