]> gcc.gnu.org Git - gcc.git/commitdiff
* g++.old-deja/g++.pt/crash56.C: New test.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 4 Sep 2000 10:28:41 +0000 (10:28 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 4 Sep 2000 10:28:41 +0000 (10:28 +0000)
From-SVN: r36135

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/crash56.C [new file with mode: 0644]

index bd135bdddcac3c7289c30b115b686d7a2e7e5b7c..17d0c5fd7d901165558c0e01d6eb4a7ca62f51a0 100644 (file)
@@ -1,3 +1,7 @@
+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.
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 (file)
index 0000000..89c3422
--- /dev/null
@@ -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
+}
This page took 0.06909 seconds and 5 git commands to generate.