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:

[...]

| I'm saying that the C (and C++) languages _do_ make a very clear
| distinction about lvalues vs rvalues, and lvalues are always used on the
| left side of an assignment, and rvalues on the right side.

That is untrue in C++:

	struct X { };

	int main()
	{
	   X x;
	   X()  = x;
	   return 0;
	}

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