| 1 |
// { dg-do assemble } |
| 2 |
// Copyright (C) 2000 Free Software Foundation, Inc. |
| 3 |
// Contributed by Nathan Sidwell 4 Oct 2000 <[email protected]> |
| 4 |
// Origin: Bug 543 Gerald Pfeifer <[email protected]> |
| 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 |
} |