[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2012-11-08 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10416 Paolo Carlini changed: What|Removed |Added CC||bisqwit at iki dot fi --- Comme

[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2012-08-20 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10416 Paolo Carlini changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2012-08-20 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10416 --- Comment #12 from paolo at gcc dot gnu.org 2012-08-20 17:39:00 UTC --- Author: paolo Date: Mon Aug 20 17:38:53 2012 New Revision: 190538 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190538 Log: /cp 2012-08-20 Paolo Carlini PR

[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2012-08-20 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10416 Paolo Carlini changed: What|Removed |Added Status|NEW |ASSIGNED CC|gcc-bugs at g

[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2006-01-23 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2006-01-23 22:23 --- (In reply to comment #9) > Of course, the compiler (more precisely the middle-end) knows that the > destructor has a side-effect. But GCC middle-end tends to have little > knowledge of language specific idioms. N

[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2006-01-22 Thread gdr at gcc dot gnu dot org
--- Comment #9 from gdr at gcc dot gnu dot org 2006-01-22 10:44 --- (In reply to comment #0) > Sometimes a variable is created only for the side-effects of its > constructor/destructor. For example, in the following code: > > struct Closer { ~Closer() { CloseClipboard(); } } closer; >

[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2005-12-22 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2005-12-23 00:57 --- *** Bug 25541 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects

2005-09-07 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Keywords|missed-optimization |diagnostic Last reconfirmed|2005-05-16 02:30:28 |2005-09-07 17:43:18 date|