This is the mail archive of the
mailing list for the GCC project.
Re: shadowed "for" scope variables not throwing up a warning (gcc 3.1.1/cygwin)
Fergus Henderson <firstname.lastname@example.org.OZ.AU> writes:
| However, on further investigation I see that the C++ standard requires
| a diagnostic for examples like the one that you posted.
| So g++ should be issuing an error, even without -Wshadow.
| Please file a bug report (see <http://gcc.gnu.org/bugs.html>).
At least two PRs were filled on the topic (one by myself, a loooong time
ago). I don't know whether one more PR is necessary.