This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/7503] (x < Y ? X : Y) used for assignment causes wrong code


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]