From: Alexandre Oliva Date: Sat, 10 Oct 1998 08:15:19 +0000 (+0000) Subject: typeof is an extension, -ansi -pedantic (default options) wouldn't X-Git-Tag: prereleases/libgcj-0.1~2624 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce886362097728b8156e709760ba15ba58557642;p=thirdparty%2Fgcc.git typeof is an extension, -ansi -pedantic (default options) wouldn't accept it; make it __typeof__ From-SVN: r22973 --- diff --git a/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C b/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C index a21f3c7bf3bd..59edb91add7d 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C @@ -9,7 +9,7 @@ struct inttest { template void F(T x) { - typedef typeof(x.elem[0]) dummy; + typedef __typeof__(x.elem[0]) dummy; i = 1; }