4 ms·
> I don't get the reference to undefined behavior. > [...] > Am I missing something? `int*` and `char8_t*` aliasing is UB under strict aliasing. You can cal
by masklinn 5y ago
> I don't get the reference to undefined behavior.
> [...]
> Am I missing something?
`int*` and `char8_t*` aliasing is UB under strict aliasing.
You can call it "an aliasing issue, which is pretty well defined". As far as the compiler is concerned it's no different than every other UB it uses for constraints inference.