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

Reply via email to