shadowed "for" scope variables not throwing up a warning (gcc 3.1.1/cygwin)
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Aug 5 19:40:00 GMT 2002
Fergus Henderson <fjh@cs.mu.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.
-- Gaby
More information about the Gcc
mailing list