[bugs] Re: GCC problem (Was: Re: [bugs] Problem compiling the kernel)

Joseph S. Myers jsm28@cam.ac.uk
Mon Dec 10 08:02:00 GMT 2001


On Mon, 10 Dec 2001, Andreas Jaeger wrote:

> > No-one spoke up in favour of this extension (treating compound literals as
> > if they were the brace-enclosed lists they contain) when I asked
> > <URL:http://gcc.gnu.org/ml/gcc/2001-11/msg01161.html>, so I killed it when
> 
> Seems that nobody noticed this.:-(  The Linux kernel relies on this
> (that's where the example is from) and it seems to work with GCC
> 2.95.x and GCC 3.0 also.

Can Linux be fixed not to?  Because at the very least it makes no sense in
C99 mode for a compound literal to be other than an anonymous variable
initialized with particular contents, as specified in C99, and as soon as
the implementation of C99 is essentially finished (though I have no idea
when that will be) I intend to make -std=gnu99 the default, and I hope
Linux won't want to go around using the old standard by -std=gnu89 for
ever.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc mailing list