[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2011-06-04 Thread froydnj at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770 Nathan Froyd changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2009-12-08 Thread pinskia at gcc dot gnu dot org
--- 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 ---

[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2009-11-05 Thread pinskia at gcc dot gnu dot org
--- 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 ---

[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2009-01-30 Thread bangerth at gmail dot com
--- 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 -

[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2008-12-02 Thread jwakely dot gcc at gmail dot com
--- 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 --

[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2008-10-08 Thread akyrtzi at gmail dot com
--- 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

[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2008-10-03 Thread pinskia at gcc dot gnu dot org
--- 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 ---

[Bug c++/18770] g++ accepts invalid code

2004-12-01 Thread pinskia 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 ---