[Bug c/58943] [4.7/4.8/4.9 Regression] wrong calculation of indirect structure member arithmetic via function call

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 3 16:57:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58943

--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I think it should be fixed for all C standard versions, not just C11 (that 
is, the front end should produce something like (save (rhs), save (lhs) = 
save (lhs) op save (rhs)) to get the right order of evaluation).

As it's reported for at least 4.6 onwards and earlier versions didn't 
claim any C11 support and only C11 defined things sufficiently precisely 
for this to be a bug, I don't see this as a regression.



More information about the Gcc-bugs mailing list