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

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



------- 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


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