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:
Andrew Pinski 2004-02-14 19:36:11 +00:00 committed by Andrew Pinski
parent be04394b81
commit d9e94da36a
2 changed files with 16 additions and 0 deletions

View File

@ -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> 2004-02-14 Eric Botcazou <ebotcazou@act-europe.fr>
* gcc.c-torture/compile/20040214-1.c: New test. * gcc.c-torture/compile/20040214-1.c: New test.

View File

@ -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;
}