typeof is an extension, -ansi -pedantic (default options) wouldn't
authorAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 10 Oct 1998 08:15:19 +0000 (08:15 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 10 Oct 1998 08:15:19 +0000 (08:15 +0000)
accept it; make it __typeof__

From-SVN: r22973

gcc/testsuite/g++.old-deja/g++.ext/typeof1.C

index a21f3c7bf3bdb6e096cfd1fc9f041b234dcb3641..59edb91add7d3dd52b826becb5ffd4f9896d9117 100644 (file)
@@ -9,7 +9,7 @@ struct inttest {
 template <class T>
 void F(T x)
 {
-  typedef typeof(x.elem[0]) dummy;
+  typedef __typeof__(x.elem[0]) dummy;
   i = 1;
 }