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 astrees


Paul Schlie <schlie@mediaone.net> writes:

| >> It it being asserted that:
| > 
| >>  volatile q
| >>  (q = 10) == 10
| > 
| >> is ambiguous, and therefore defined?
| > 
| > I am asserting that in C++ the above is unambiguously equivalent to
| > 
| > q = 10, q == 10
| > 
| > and therefore the result of the comparison cannot be predicted.
| > 
| > Jason
| 
| Hence you are asserting that "(q = 10) == 10" may not be true, if q is
| volatile. Correct?

Yes, that is the whole point of this thread :-)

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