https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68039
Martin Sebor changed:
What|Removed |Added
Last reconfirmed|2015-10-22 00:00:00 |2018-9-14
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68039
--- Comment #2 from Marek Polacek ---
Since op1 and op2 in that COND_EXPR are the same, we fold the conditional
expression to a COMPOUND_EXPR:
return x ();, 0;
so the result of x () looks unused.
Same for C++.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68039
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|