[Bug c++/107797] "warning right operand of comma operator has no effect" for expressions with no comma operator
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 21 18:19:39 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107797
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(gdb) p debug_generic_expr(expr)
(long int) (int *) D.2758
...
1209 if (implicit != ICV_CAST && !warning_suppressed_p (expr /* What
warning? */))
1210 new_op1 = convert_to_void (op1, ICV_RIGHT_OF_COMMA,
complain);
1211 else
1212 new_op1 = convert_to_void (op1, ICV_CAST, complain);
I suspect there was a missing supression for the compound_expr creation when
creating it.
More information about the Gcc-bugs
mailing list