This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31952] parameters may be redeclared in a function try-block
- From: "andrew dot stubbs at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2007 14:34:55 -0000
- Subject: [Bug c++/31952] parameters may be redeclared in a function try-block
- References: <bug-31952-10252@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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