This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5582: warn about using the extension "int x=x;"
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: pcarlini at unitus dot it, aoliva at redhat dot com, dewar at gnat dot com, gcc-gnats at gcc dot gnu dot org, coola at ngs dot ru, gcc-bugs at gcc dot gnu dot org, bangerth at dealii dot org
- Date: Wed, 8 Jan 2003 12:50:22 +0100
- Subject: 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