aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2005-03-18 17:19:42 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2005-03-18 17:19:42 +0000
commit0a1948ed7bfda7c4e3ca6504727b129f000be860 (patch)
treea3849fa307ae17a852256d47a8324d1671b824b8 /gcc
parent32db39c035bd6b704da8cdbe3b6899acf7d0c814 (diff)
downloadgcc-0a1948ed7bfda7c4e3ca6504727b129f000be860.zip
gcc-0a1948ed7bfda7c4e3ca6504727b129f000be860.tar.gz
gcc-0a1948ed7bfda7c4e3ca6504727b129f000be860.tar.bz2
re PR c++/20463 (ICE on using undefined type)
2005-03-18 Paolo Carlini <pcarlini@suse.de> PR c++/20463 * g++.dg/template/crash35.C: New test. From-SVN: r96690
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/crash35.C9
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4a0f85f..861304d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-18 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/20463
+ * g++.dg/template/crash35.C: New test.
+
2005-03-17 Paolo Carlini <pcarlini@suse.de>
PR c++/19966
diff --git a/gcc/testsuite/g++.dg/template/crash35.C b/gcc/testsuite/g++.dg/template/crash35.C
new file mode 100644
index 0000000..dd8aa2f
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/crash35.C
@@ -0,0 +1,9 @@
+// PR c++/20463
+// { dg-do compile }
+
+template <typename T> struct C; // { dg-error "declaration" }
+
+template <typename T> void C<T>::f() // { dg-error "invalid|template" }
+{
+ const foo bar; // { dg-error "name a type" }
+}