Re: Potential Violation of 6.5p2
- From: Shao Miller <sha0.miller@xxxxxxxxx>
- Date: Mon, 9 Aug 2010 10:30:00 -0700 (PDT)
On Aug 9, 10:56 am, lawrence.jo...@xxxxxxxxxxx wrote:
Shao Miller <sha0.mil...@xxxxxxxxx> wrote:Thanks, Larry! Simply amazing. Identification of an lvalue's object
On Aug 9, 7:40?am, "Ersek, Laszlo" <la...@xxxxxxxxxxxxxx> wrote:
And so on. Even if the same "slot" of "ia" is accessed twice (once read,
once written to), the data dependencies dictated by how the operators are
bound together serialize those accesses correctly.
Unfortunately, despite the flow of causality you point out, an object
is read for purposes unrelated to a computation of the value which
will be stored in it, which I perceive to be a violation of a "shall"
in 6.5p2. What I'm wondering is if anyone sees a way out of this
violation, or doesn't see it at all.
The way out is C1X, the latest draft of which can be found at the
committee's web site <http://wg14.open-std.org/jtc1/sc22/wg14/> as
document N1494. The statement in 6.5p2 did not fully reflect the
committee's intent, but there was never any agreement on a formal model
that did correctly reflect the intent before the new memory and
sequencing model reflected in the draft.
is defined as part of value computation. The way out is C1X,