[Bug middle-end/16502] inappropriate -Wunreachable-code warning from generic code

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 13 04:12:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list