Sorry, feline. The code that Babak posted is valid C++. Try this:
void myFunc( int z )
try { int x = 1; }
catch (...)
{
// body of function
}
I remember there being a bug already reported on this. I no longer have access to the bug database, so I can't look for it.