[Bug c++/31952] parameters may be redeclared in a function try-block
andrew dot stubbs at st dot com
gcc-bugzilla@gcc.gnu.org
Thu May 17 14:35:00 GMT 2007
------- 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 redeclared in the outermost block of the
catch block.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31952
More information about the Gcc-bugs
mailing list