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: [PATCH] C undefined behavior fix



> I thought the documentatoin was pretty clear, the rule about not misusing
> integer arithmetic bla-bla seemed clearly stated to me, is that not part
> of the documentation, or have I misunderstood?

It is mathematically inconsistent with the sections that precede it.  If
you define I2P, and you define P2I, and you define PLUS, you have defined
I2P(PLUS(P2I(p),i)), because at no point is an illegal or undefined
expression created.


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