egcs 1.1a g++ bug with __typeof?
Jeffrey A Law
law@cygnus.com
Sat Oct 31 01:21:00 GMT 1998
In message <199809040416.XAA13009@tillamook-sharp.bogus.domain>you write:
> I just picked up egcs-1.1a to try to compile Octave and found the
> following problem.
>
> The following code compiles fine with the C compiler, but fails with
> the C++ compiler.
>
> void
> foobar (void)
> {
> int foo = 0;
> foo = __extension__ ({
> union {
> __typeof (foo) __in;
> } __u;
> __u.__in = foo;
> });
> }
>
> Here is the output from running g++ -v:
This has been fixed for the upcoming egcs-1.1.1 release.
Thanks,
jeff
More information about the Gcc-bugs
mailing list