* g++.dg/ext/typeof8.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77815
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
--- /dev/null
+// 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;
+}
+
+