| 1 |
// PR c++/14116 |
| 2 |
// Any use of typeof in a templete was causing an ICE. |
| 3 |
// { dg-options "" } |
| 4 |
|
| 5 |
struct vector { typedef int iterator; }; |
| 6 |
vector read_queue; |
| 7 |
template <class T> void f(){ |
| 8 |
typedef typeof (read_queue) read_queue_t; |
| 9 |
read_queue_t::iterator it; |
| 10 |
} |
| 11 |
|
| 12 |
|