https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121593
--- Comment #17 from Sam James <sjames at gcc dot gnu.org> --- (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.