5.7.4.2 Enforce-eh-specs Option
The -fenforce-eh-specs
option generates code to check for violation of exception
specifications at runtime. This is the default action if no option is specified.
The -fno-enforce-eh-specs
form of this option omits generation of
verification code, which violates the C++ standard, but doing so might reduce the code
size in production builds of validated source. Even when specifying this option, the
compiler will still optimize exception code based on the specifications, so throwing an
unexpected exception will result in undefined behavior.