This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49083] g++ should error when a variable declared in a condition is hidden by a variable in the immediately contained block


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]