[Bug c/59871] [4.7/4.8/4.9 Regression] No unused value warning for comma expression
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 18 10:03:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59871
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|No unused value warning for |[4.7/4.8/4.9 Regression] No
|comma expression |unused value warning for
| |comma expression
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Even 3.4.x gave:
pr59871.c:6: warning: left-hand operand of comma expression has no effect
pr59871.c:7: warning: left-hand operand of comma expression has no effect
pr59871.c:8: warning: left-hand operand of comma expression has no effect
pr59871.c:10: warning: left-hand operand of comma expression has no effect
pr59871.c:8: warning: value computed is not used
pr59871.c:10: warning: value computed is not used
so this seems to have regressed in 4.0.
More information about the Gcc-bugs
mailing list