aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/typeof8.C
blob: 8e6523484e75ed3a9be2b0c364abb97e89704e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/14116
// Any use of typeof in a templete was causing an ICE.
// { dg-options "" }

struct vector { typedef int iterator; };
vector read_queue;
template <class T> void f(){
    typedef typeof (read_queue) read_queue_t;
    read_queue_t::iterator it;
}