This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16502] inappropriate -Wunreachable-code warning from generic code
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2004 04:12:47 -0000
- Subject: [Bug middle-end/16502] inappropriate -Wunreachable-code warning from generic code
- References: <20040712210704.16502.sebor@roguewave.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-07-13 04:12 -------
This request is certainly valid, though it should have the lowest
priority, as far as I am concerned. It is just about too complicated
to figure out whether we are on a codepath that isn't taken due to
a particular template argument, or whether the code is really _never_
reachable (in which case we would like to have the warning).
As for the argument of system and/or third party libraries: if this is
a concern of yours, then having the include path indicate that this
is a system header is the right choice (I think the flag is -isystem instead
of -I). I don't see any other way than special casing these things this
way.
I doubt anyone will find time to "fix" this properly near or mid term...
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16502