OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash59.C
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>
5
6 // Bug 532. We failed to bail out when tsubsting a _DECL failed
7
8 class ATOMSET
9 {
10 };
11
12 template <class T>
13 void addConstsTo(const T &container)
14 {
15 typename T::const_iterator l = 0; // { dg-error "" } no type const_iterator
16 }
17
18 void tallyConstants()
19 {
20 addConstsTo(ATOMSET());
21 }