This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]