* g++.old-deja/g++.pt/crash59.C: New test.

From-SVN: r36721
This commit is contained in:
Nathan Sidwell 2000-10-05 08:31:39 +00:00 committed by Nathan Sidwell
parent ce2e5191bc
commit b2f9816ffd
2 changed files with 24 additions and 0 deletions

View 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.

View File

@ -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());
}