[Bug c++/7503] (x < Y ? X : Y) used for assignment causes wrong code
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Mon Jun 21 15:01:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-06-21 15:01 -------
One (possibly good) question: does a ?: operator involve sequence
points? If we have an expression like
(a>b ? a : b) = 1;
with a,b being references, then we use some of the variables both
for evaluation and for assignment, and the question is if any of these
operations need to be ordered.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7503
More information about the Gcc-bugs
mailing list