aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-09-04 10:28:41 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-09-04 10:28:41 +0000
commitc6b08b3ea30e2f2e42b848128781dddcc8c9e17e (patch)
treef60ecd79a3ad6cb3656e28258595bb5479f7b1f3 /gcc
parent1bc0793e55808609cb199adba76f2de4a7cac4d5 (diff)
downloadgcc-c6b08b3ea30e2f2e42b848128781dddcc8c9e17e.zip
gcc-c6b08b3ea30e2f2e42b848128781dddcc8c9e17e.tar.gz
gcc-c6b08b3ea30e2f2e42b848128781dddcc8c9e17e.tar.bz2
* g++.old-deja/g++.pt/crash56.C: New test.
From-SVN: r36135
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash56.C19
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bd135bd..17d0c5f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
+ * g++.old-deja/g++.pt/crash56.C: New test.
+
+2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
+
* g++.old-deja/g++.pt/koenig1.C: New test.
2000-09-04 Jakub Jelinek <jakub@redhat.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash56.C b/gcc/testsuite/g++.old-deja/g++.pt/crash56.C
new file mode 100644
index 0000000..89c3422
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/crash56.C
@@ -0,0 +1,19 @@
+// Build don't link:
+//
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 1 Sep 2000 <nathan@codesourcery.com>
+
+// bug 127. We ICE'd when given a non-template TYPE_DECL as a template name.
+
+template <class charT>
+class basic_string
+{
+public:
+ typedef charT* iterator;
+ explicit basic_string ();
+ ~basic_string ();
+};
+
+void foo () {
+ basic_string<char>::iterator<char> p; // ERROR - not a template // ERROR - no type
+}