[Bug c++/14199] [tree-ssa regression] Unjustified warning about unused variable

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 18 22:04:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-02-18 22:04 -------
Actually, when I extracted this small snippet, I didn't even really think 
what it is about. The point is that the compiler really has some right 
to say that the object is unused: the function we call is static, so the 
object is really unused. It does make use to not issue the warning, though, 
since the template may as well be instantiated for classes for which this 
function is not static, and there is no good reason to show an warning message 
in one, but not the other case. So, in a sense, a patch will have to 
broaden the meaning of the word "unused"... 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14199



More information about the Gcc-bugs mailing list