* g++.old-deja/g++.pt/crash59.C: New test.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 5 Oct 2000 08:31:39 +0000 (08:31 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 5 Oct 2000 08:31:39 +0000 (08:31 +0000)
From-SVN: r36721

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

index 03797caa99e6d705b530c134e47bb6788175a264..f389e4f2c7ecd6bf87fc168e170ba781baa79f7f 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-05  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * g++.old-deja/g++.pt/crash59.C: New test.
+
 2000-10-04  Will Cohen  <wcohen@redhat.com>
 
        * gcc.dg/20000926-1.c: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash59.C b/gcc/testsuite/g++.old-deja/g++.pt/crash59.C
new file mode 100644 (file)
index 0000000..54e0722
--- /dev/null
@@ -0,0 +1,20 @@
+// Build don't link:
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 4 Oct 2000 <nathan@codesourcery.com>
+
+// Bug 532. We failed to bail out when tsubsting a _DECL failed
+
+class ATOMSET
+{
+};
+
+template <class T>
+void addConstsTo(const T &container)
+{
+typename T::const_iterator l = 0; // ERROR - no type const_iterator
+}
+
+void tallyConstants()
+{
+addConstsTo(ATOMSET());
+}