This is the mail archive of the gcc@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: Signed int overflow behavior in the security context


Paul Schlie <schlie@comcast.net> wrote:
>  x = x ; perfectly fine; as lvaue x clearly designates an object (no trap)

Can you cite the part of the standard that says that?  The fact that
an expression designates an object does not exclude that object from
holding a trap representation.  A trap representation, as defined by
the standard (6.2.6.1p5), is unrelated to dereferencing an invalid
pointer.  The word "trap" is also sometimes used to refer to
dereferencing an invalid pointer, but that's not relevant here, since
the standard uses a different definition.


paul


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