[Bug c++/31952] parameters may be redeclared in a function try-block
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 14 15:55:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #9)
> After Janis' patch (see Comment #6) in pushdecl_maybe_friend_1 we issue hard
> errors for some kinds of shadowings but not for others. For comparison,
> clang issues hard errors for all three testcases here, ICC warnings (like
> current GCC). If we wanted, I could tweak the parser to carefully
> do_pushlevel (sk_catch) and therefore change to errors only the specific
> shadowings at issue in this PR, but I'm also aiming for some consistency.
Well, the language requires diagnostics for some shadowings and not others, so
it makes sense for us to mirror that. But we probably want permerror rather
than error.
More information about the Gcc-bugs
mailing list