[Bug c++/31952] parameters may be redeclared in a function try-block

2013-05-15 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug c++/31952] parameters may be redeclared in a function try-block

2013-05-14 Thread jason at gcc dot gnu.org
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

[Bug c++/31952] parameters may be redeclared in a function try-block

2013-05-13 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/31952] parameters may be redeclared in a function try-block

2013-05-13 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC||jason at

[Bug c++/31952] parameters may be redeclared in a function try-block

2012-08-20 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC|gcc-bugs at gcc dot gnu.org |janis at

[Bug c++/31952] parameters may be redeclared in a function try-block

2012-08-20 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC||cs at

[Bug c++/31952] parameters may be redeclared in a function try-block

2009-11-05 Thread pi3orama at gmail dot com
--- Comment #5 from pi3orama at gmail dot com 2009-11-06 06:58 --- still not solved at 4.3.4 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952

[Bug c++/31952] parameters may be redeclared in a function try-block

2007-11-01 Thread andrew dot stubbs at st dot com
--- Comment #4 from andrew dot stubbs at st dot com 2007-11-01 18:15 --- It gets worse :( The following example used to be detected by GCC 4.1.1, but is now permitted by GCC 4.1.2, 4.2.1, 4.2.2, and 4.3-20071026, and hence is a regression. int foo (int bar) try { return 0; } catch

[Bug c++/31952] parameters may be redeclared in a function try-block

2007-05-17 Thread andrew dot stubbs at st dot com
--- Comment #2 from andrew dot stubbs at st dot com 2007-05-17 15:34 --- Another example perhaps? void foo() { try { } catch (void *e) { void *e; // invalid } } The C++ standard, clause 3.3.2 paragraph 3, states that catch exception-declarations may not be

[Bug c++/31952] parameters may be redeclared in a function try-block

2007-05-17 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2007-05-17 15:51 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added CC|

[Bug c++/31952] parameters may be redeclared in a function try-block

2007-05-16 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-05-16 20:46 --- Poor man's workaround: -Wshadow -Werror -- fang at csl dot cornell dot edu changed: What|Removed |Added