diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 03797caa99e6..f389e4f2c7ec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-10-05 Nathan Sidwell + + * g++.old-deja/g++.pt/crash59.C: New test. + 2000-10-04 Will Cohen * 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 index 000000000000..54e07228397b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash59.C @@ -0,0 +1,20 @@ +// Build don't link: +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 4 Oct 2000 + +// Bug 532. We failed to bail out when tsubsting a _DECL failed + +class ATOMSET +{ +}; + +template +void addConstsTo(const T &container) +{ +typename T::const_iterator l = 0; // ERROR - no type const_iterator +} + +void tallyConstants() +{ +addConstsTo(ATOMSET()); +}