https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116672

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #5)
> (In reply to Andrew Pinski from comment #4)
> 
> > Note GCC has an (I think undocumented) exception to the aliasing rule where
> > `void*` is allowed to alias all other pointer types in a similar fashion as
> > `char` does.
> 
> I don't think it's an exception, just some coincidence.
> 
> "Chains of casts" like (float *)(void *)(int *) is still broken (PR 112409
> is an invalid PR about it).

No I am talking about accesses via `void*` rather than casting to void*.
But I am wrong; just tested it myself.

Reply via email to