| 1 |
// { dg-do compile } |
| 2 |
|
| 3 |
// Origin: [email protected] |
| 4 |
// Volker Reichelt <[email protected]> |
| 5 |
|
| 6 |
// PR c++/12495: ICE looking up class template in local class. |
| 7 |
|
| 8 |
template <typename> struct A {}; |
| 9 |
|
| 10 |
template <typename T> void foo() |
| 11 |
{ |
| 12 |
struct B |
| 13 |
{ |
| 14 |
B (const A<T>&); |
| 15 |
}; |
| 16 |
} |