This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/2288] Variable declared in for-loop-header is in wrong scope
- From: "fang at csl dot cornell.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 May 2011 18:16:55 +0000
- Subject: [Bug c++/2288] Variable declared in for-loop-header is in wrong scope
- Auto-submitted: auto-generated
- References: <bug-2288-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2288
--- Comment #17 from David Fang <fang at csl dot cornell.edu> 2011-05-20 17:56:25 UTC ---
I usually catch these with -Wshadow -Werror.