c/5582: warn about using the extension "int x=x;"
Volker Reichelt
reichelt@igpm.rwth-aachen.de
Wed Jan 8 10:56:00 GMT 2003
The following reply was made to PR c/5582; it has been noted by GNATS.
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: pcarlini@unitus.it, aoliva@redhat.com, dewar@gnat.com,
gcc-gnats@gcc.gnu.org, coola@ngs.ru, gcc-bugs@gcc.gnu.org,
bangerth@dealii.org
Cc:
Subject: Re: c/5582: warn about using the extension "int x=x;"
Date: Wed, 8 Jan 2003 12:50:22 +0100
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
More information about the Gcc-prs
mailing list