* g++.old-deja/g++.pt/crash59.C: New test.
From-SVN: r36721
This commit is contained in:
parent
ce2e5191bc
commit
b2f9816ffd
@ -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.
|
||||
|
20
gcc/testsuite/g++.old-deja/g++.pt/crash59.C
Normal file
20
gcc/testsuite/g++.old-deja/g++.pt/crash59.C
Normal 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());
|
||||
}
|
Loading…
Reference in New Issue
Block a user