This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2007 23:13:32 -0000
- Subject: [Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
- References: <bug-31246-1902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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