[Bug c++/61935] Missing "unused variable" warning in 4.9 but it was in g++ 4.8

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 28 14:38:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61935

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
An object with a non-trivial destructor can have side effects so is always
"used", the change in behaviour is intentional.

*** This bug has been marked as a duplicate of bug 38958 ***



More information about the Gcc-bugs mailing list