This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64501] Unreachable catch BB for try blocks that cannot create an exception of specific type
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Jan 2015 16:45:38 +0000
- Subject: [Bug c++/64501] Unreachable catch BB for try blocks that cannot create an exception of specific type
- Auto-submitted: auto-generated
- References: <bug-64501-4 at http dot gcc dot gnu dot org/bugzilla/>
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.