https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119866
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #11) > But note that the existing "mostly works" behaviour doesn't help solve the > general problem, it would need entirely new code in the front end to be > written from scratch for this specific call. But mostly one or two new functions (one for loads, one for stores) and then just use it in dozens of different constexpr evaluations of calls (strcmp, strncmp, memcmp, strspn, strcspn, memcpy, memset, memmove, strcpy, stpcpy, ...). For loads a question is if it should work like bit_cast to char and for stores what it should allow the bytes to be stored into.