This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]