This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/64501] Unreachable catch BB for try blocks that cannot create an exception of specific type


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

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
There are a lot of possible optimizations related to exceptions, and most
compilers perform almost none :-(

The compiler could notice that t is nothrow, but it doesn't. If you mark it
explicitly (add throw() for instance) main will be simplified. PR 53294 would
also let it simplify for different reasons.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]