[Bug c++/62046] A catch in a class, without any try, compiles fine

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 19 10:57:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62046

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I think it can be reduced like this:

void foo() { } catch (...);
class bar { void foo() { } catch (...); };

we reject only the former.



More information about the Gcc-bugs mailing list