[Bug c/22485] pointer +- integer is never NULL
mattias at virtutech dot se
gcc-bugzilla@gcc.gnu.org
Fri Jul 15 15:54:00 GMT 2005
------- Additional Comments From mattias at virtutech dot se 2005-07-15 15:29 -------
(In reply to comment #18)
> The "side" notes were written by people who know what they
> intend. Therefore their inputs are completely relevant here.
Even if you could show that these optimisations would contradict the letter
and/or spirit of the C++ standard, this does not mean the same thing for C,
where this clearly (my judgement) is a missed optimisation opportunity for
standard-conforming code.
(It is really two related optimisations: that Q=P+I implies P!=NULL and that it
implies Q!=NULL.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22485
More information about the Gcc-bugs
mailing list