[Bug c++/41134] [4.5 regression] Variable flagged unused if only used in template function

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 20 21:11:00 GMT 2009



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-08-20 21:11 -------
Why is this a regression?  Which compiler version didn't warn here?

The question is really whether we want unused variables just in the case
where we can remove it and without further changes the program is still
valid or if we want to detect more elaborate cases where the programmer
can remove a variable with some extra work.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.0


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



More information about the Gcc-bugs mailing list