Commit d9e94da3 by Andrew Pinski Committed by Andrew Pinski

typeof8.C: New test.

2004-02-14  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/ext/typeof8.C: New test.

From-SVN: r77815
parent be04394b
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.
......
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment