From b2f9816ffd08532b0f6a809d6e074300226e9a79 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 5 Oct 2000 08:31:39 +0000 Subject: [PATCH] * g++.old-deja/g++.pt/crash59.C: New test. From-SVN: r36721 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.old-deja/g++.pt/crash59.C | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/crash59.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 03797caa99e..f389e4f2c7e 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 00000000000..54e07228397 --- /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()); +} -- 2.30.2