[Bug tree-optimization/38835] field-insensitive PTA causes libstdc++ miscompiles
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 16 18:30:00 GMT 2009
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-01-16 18:30 -------
void *p;
intptr_t iptr = (intptr_t)p - (intptr_t)&iptr;
of course. Then this is just
(void *)((intptr_t)&iptr + (intptr_t)p - (intptr_t)&iptr)
<==>
(void *)(intptr_t)p
which is guaranteed by the std
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38835
More information about the Gcc-bugs
mailing list