This is the mail archive of the gcc@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]

Re: shadowed "for" scope variables not throwing up a warning (gcc 3.1.1/cygwin)


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


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