[Bug c/46921] Lost side effect when struct initializer expression uses comma operator
dave.pagan at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 21 20:22:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46921
Dave Pagan <dave.pagan at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Dropped side effect with |Lost side effect when
|combination of statement |struct initializer
|expression and struct |expression uses comma
|initializer |operator
--- Comment #3 from Dave Pagan <dave.pagan at oracle dot com> ---
When emitting initializer elements (output_init_element), the left hand
expression of a comma operator with result size zero is not evaluated. It
should be, however, if the expression is marked as having side effects.
More information about the Gcc-bugs
mailing list