Is this a bug in gcc??

Nathan Sidwell nathan@codesourcery.com
Wed Dec 1 13:39:00 GMT 2004


Name lastlong wrote:
> Ok agreed!
> 
> But don't you think that C compiler (gcc) also output
> this error? 
if it did that, it would not be a C compiler.  What part
of 'gcc is a C compiler, where the above is not an error'
was unclear?

> My observation is gcc outputs error only if we try to
> initialise both instant of "a".
again, correct. doing that is an error in C

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gcc-help mailing list