summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-29 21:39:54 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-29 21:39:54 +0000
commitbdd1699da3581fc2d45bfe508c379be507b67fbe (patch)
tree83ee9361630e9f9ae41874fe87a1d9f12d5140e0
parente95dafb1004e31c1b3910666f2a43494e7d67c6f (diff)
downloadgcc-bdd1699da3581fc2d45bfe508c379be507b67fbe.tar.gz
PR c++/11471
PR c++/27102 * g++.dg/template/crash48.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113382 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/template/crash48.C10
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1a5d0ab8615..6d9172c19fb 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2006-04-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ PR c++/11471
+ PR c++/27102
+ * g++.dg/template/crash48.C: New test.
+
PR c++/27279
* g++.dg/parse/ctor4.C: New test.
diff --git a/gcc/testsuite/g++.dg/template/crash48.C b/gcc/testsuite/g++.dg/template/crash48.C
new file mode 100644
index 00000000000..9fd1a4fbefd
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/crash48.C
@@ -0,0 +1,10 @@
+// PR c++/11471
+// Origin: <bagnara@cs.unipr.it>
+// { dg-do compile }
+
+template<typename T> struct A
+{
+ typedef typename T::X X;
+};
+
+template<typename T> A<T>::X::X() {} // { dg-error "no type|invalid use" }