[Bug libstdc++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
chris at bubblescope dot net
gcc-bugzilla@gcc.gnu.org
Sat Mar 17 17:46:00 GMT 2007
------- Comment #3 from chris at bubblescope dot net 2007-03-17 17:46 -------
This is a general problem I've come across with templates. You commonly want to
try/catch around some operation, but when you have templated on a simple type,
like int, then it's easy to find out that no throwing can ever occur, and for
this type the try/catch is a waste of time.
I'm not sure what the best way of fixing this is.
--
chris at bubblescope dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31246
More information about the Gcc-bugs
mailing list