[Bug tree-optimization/108398] tree-object-size trips up with pointer arithmetic if an intermediate result is an invalid pointer
law at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 13 17:51:52 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108398
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at gcc dot gnu.org
--- Comment #1 from Jeffrey A. Law <law at gcc dot gnu.org> ---
The compiler will sometimes create pointers outside any object -- the loop
optimizers in particular will tend to do that. For the actual memory access,
an offset will be applied to get the effective addresss of the memory reference
into the proper object.
It's also the case that Ada can create these inherently via "virtual origins"
IIRC.
I'm not sure this qualifies as a bug.
More information about the Gcc-bugs
mailing list