This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44062] (void)var; doesn't prevent 'set but not used' warning
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2010 16:50:50 -0000
- Subject: [Bug c++/44062] (void)var; doesn't prevent 'set but not used' warning
- References: <bug-44062-16552@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2010-05-10 16:50 -------
Created an attachment (id=20622)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20622&action=view)
gcc46-pr44062.patch
Actually, I've found 2 issues even in the C FE related to comma expressions
with
LHS or RHS without side-effects.
The C++ FE changes needed for these new testcases are missing though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44062