summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" }