This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18770] g++ accepts invalid code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2004 23:21:39 -0000
- Subject: [Bug c++/18770] g++ accepts invalid code
- References: <20041201230547.18770.seefeld@sympatico.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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