2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash59.C
blob37a2fc53118ffecc4d41299349566754428eecfc
1 // { dg-do assemble  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 4 Oct 2000 <nathan@codesourcery.com>
4 // Origin: Bug 543 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6 // Bug 532. We failed to bail out when tsubsting a _DECL failed
8 class ATOMSET
12 template <class T>
13 void addConstsTo(const T &container)
15 typename T::const_iterator l = 0; // { dg-error "" } no type const_iterator
18 void tallyConstants()
20 addConstsTo(ATOMSET());