This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49083] g++ should error when a variable declared in a condition is hidden by a variable in the immediately contained block
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 5 Jun 2011 20:36:39 +0000
- Subject: [Bug c++/49083] g++ should error when a variable declared in a condition is hidden by a variable in the immediately contained block
- Auto-submitted: auto-generated
- References: <bug-49083-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49083
--- Comment #2 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-06-05 20:36:36 UTC ---
Fixed at r174307. Now the provided test case properly errors with gcc trunk...
howarth% gcc-fsf-4.7 hidden_bug.cc
hidden_bug.cc: In function âint main()â:
hidden_bug.cc:14:8: error: redeclaration of âchar* Iâ
hidden_bug.cc:10:25: error: âconst char** Iâ previously declared here