[Bug c++/18770] g++ accepts invalid code
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 1 23:21:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-01 23:21 -------
Note this is the full testcase:
void f()
{
if (int x = 1)
{
int x = 2; // redeclaration of x
}
}
Confirmed, This is related to PR 2288.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |2288
OtherBugsDependingO| |12944
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2004-12-01 23:21:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770
More information about the Gcc-bugs
mailing list