[Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 19 23:13:00 GMT 2007
------- Comment #13 from manu at gcc dot gnu dot org 2007-03-19 23:13 -------
Andrew, as you say, -Wunreachable-code is not enabled by -Wall. The user has to
give it explicitly. And in your testcases the code is not reachable. So in that
case, it could be argued whether the warning is warranted or not. So, yes, you
got a point. But... that is not what this PR is about.
This PR is that the user cannot see the code we are warning about. Even if it
were code with an easy workaround unlike your testcases, that doesn't matter at
all, we should not emit the warning.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-03-19 23:13:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31246
More information about the Gcc-bugs
mailing list