blob: f09bcab1b85206402c222425150db5786a6e594a [file] [log] [blame]
// PR c++/31952
void
f0()
{
try
{
}
catch (void *e) // { dg-message "previously" }
{
void *e; // { dg-error "redeclaration" }
}
}
void
f1()
{
try
{
}
catch (void *e)
{
{
void *e; // Ok, not outermost block.
}
}
}
void
f2()
try
{
}
catch (void *e) // { dg-message "previously" }
{
void *e; // { dg-error "redeclaration" }
}
void
f3()
try
{
}
catch (void *e)
{
{
void *e; // Ok, not outermost block.
}
}