[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 froydnj at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||froydnj at gcc dot gnu.org
 Resolution||FIXED

--- Comment #8 from Nathan Froyd froydnj at gcc dot gnu.org 2011-06-05 
02:09:41 UTC ---
This bug was fixed on trunk in r174307; the automated update was not done
because something was wonky with my email.  Closing.


[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

 CC||andrew dot stubbs at st dot
   ||com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770



[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

 CC||pi3orama at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770



[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

 CC||mahesh dot balasubramanian
   ||at wipro dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770



[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

 CC||jwakely dot gcc at gmail dot
   ||com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770



[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|Removed |Added

 CC||akyrtzi at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770



[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

 CC||mrs at apple dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18770