This is the mail archive of the gcc-bugs@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: c/5582: warn about using the extension "int x=x;"


Just for the sake of completeness:
gcc issues an error if you just try to compile "int x=x;".

You get no error/warning, if you try to compile the code inside a
function, ie. "void foo() { int x=x; }".
But that's not a gcc extension, just a missing warning about the use of
an uninitialized variable.

Regards,
Volker

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5582



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