OSDN Git Service

2004-02-14 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Feb 2004 19:36:11 +0000 (19:36 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Feb 2004 19:36:11 +0000 (19:36 +0000)
        * g++.dg/ext/typeof8.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77815 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/typeof8.C [new file with mode: 0644]

index 7d293d3..5e70538 100644 (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>
 
        * gcc.c-torture/compile/20040214-1.c: New test.
diff --git a/gcc/testsuite/g++.dg/ext/typeof8.C b/gcc/testsuite/g++.dg/ext/typeof8.C
new file mode 100644 (file)
index 0000000..8e65234
--- /dev/null
@@ -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;
+}
+
+