typeof8.C: New test.
2004-02-14 Andrew Pinski <pinskia@physics.uc.edu> * g++.dg/ext/typeof8.C: New test. From-SVN: r77815
This commit is contained in:
parent
be04394b81
commit
d9e94da36a
|
@ -1,3 +1,7 @@
|
|||
2004-02-14 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
* g++.dg/ext/typeof8.C: New test.
|
||||
|
||||
2004-02-14 Eric Botcazou <ebotcazou@act-europe.fr>
|
||||
|
||||
* gcc.c-torture/compile/20040214-1.c: New test.
|
||||
|
|
|
@ -0,0 +1,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue