http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770
Nathan Froyd changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
--- Comment #7 from pinskia at gcc dot gnu dot org 2009-12-08 20:24 ---
*** Bug 31956 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-11-06 07:52 ---
*** Bug 41965 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #5 from bangerth at gmail dot com 2009-01-30 15:05 ---
*** Bug 39038 has been marked as a duplicate of this bug. ***
--
bangerth at gmail dot com changed:
What|Removed |Added
-
--- Comment #4 from jwakely dot gcc at gmail dot com 2008-12-02 10:39
---
*** Bug 38345 has been marked as a duplicate of this bug. ***
--
jwakely dot gcc at gmail dot com changed:
What|Removed |Added
--
--- Comment #3 from akyrtzi at gmail dot com 2008-10-08 09:09 ---
Note that the same rule applies to the 'switch' statement too:
switch (int x = 1)
{
default:
int x = 2; // there should be an error because of redeclaration
}
--
akyrtzi at gmail dot com changed:
What
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-10-03 18:46 ---
*** Bug 37728 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- 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
---