diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-10-05 08:31:39 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-10-05 08:31:39 +0000 |
commit | b2f9816ffd08532b0f6a809d6e074300226e9a79 (patch) | |
tree | a77cd9c33b16d21384a6cc7f28852a8e4ddd6f85 | |
parent | ce2e5191bc52312239c22129e84e0b97ab00994f (diff) | |
download | gcc-b2f9816ffd08532b0f6a809d6e074300226e9a79.zip gcc-b2f9816ffd08532b0f6a809d6e074300226e9a79.tar.gz gcc-b2f9816ffd08532b0f6a809d6e074300226e9a79.tar.bz2 |
* g++.old-deja/g++.pt/crash59.C: New test.
From-SVN: r36721
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash59.C | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 03797ca..f389e4f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..54e0722 --- /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 <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()); +} |