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
8class ATOMSET
9{
10};
11
12template <class T>
13void addConstsTo(const T &container)
14{
15typename T::const_iterator l = 0; // { dg-error "" } no type const_iterator
16}
17
18void tallyConstants()
19{
20addConstsTo(ATOMSET());
21}
22