This is the mail archive of the gcc-patches@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]

Re: Volatile MEMs in statement expressions and functions inlined as trees


Linus Torvalds <torvalds@transmeta.com> writes:

[...]

| In short: we convert that lvalue to a rvalue, because the expression has a
| value WHETHER IT IS USED OR NOT.

If the standard say the expression is an lvalue, on what basis shoulc
GCC/g++ decide to convert it to an rvalue?

Being an lvalue or an rvalue does make a big difference in C++.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


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