[Bug c++/56289] Bad unused value warning with comma operator

2013-02-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56289 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2013-02-11 18:32:58 UTC --- (void) x, y; You are only casting x to void and not y.

[Bug c++/56289] Bad unused value warning with comma operator

2013-02-11 Thread thomaseding at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56289 --- Comment #2 from Thomas thomaseding at gmail dot com 2013-02-11 18:35:29 UTC --- But x was used inside the comma operator.

[Bug c++/56289] Bad unused value warning with comma operator

2013-02-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56289 --- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org 2013-02-11 18:40:06 UTC --- (In reply to comment #2) But x was used inside the comma operator. It is complaining about the right hand side which is y.