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

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #17)
> (In reply to Andrew Pinski from comment #16)
> > This is NOT a GCC bug.
> > 
> > `char*` and `qchar8_t *` don't alias according to the C++ aliasing rules.
> > 
> 
> This came up in another bug (it ended up not being relevant) so I imagine Qt
> will need to audit a lot of uses. The easy hack is may_alias on qchar8_t but
> then you pay the performance price.

Note may_alias on qchar8_t won't work here. because it is not char and qchar8_t
that don't alias but rather the pointer types to them don't alias.

Reply via email to