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++/64870] value not set via reference


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64870

--- Comment #2 from Conrad <conradsand.arma at gmail dot com> ---
Notwithstanding loopholes in C++ legalese, the expected result is to evaluate
things left to right, just like reading words and sentences.

clang produces the least surprising result.  With gcc we end up with "wtf?"

What is the benefit in changing the expected order of evaluation?  Not trying
to pick a fight here -- I genuinely want to know whether there is a good reason
to change the order.


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