[Bug tree-optimization/93971] std::string considered to alias declared objects of incompatible types
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 2 00:42:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93971
--- Comment #7 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #6)
> (1) one that would make "std::string::ptr" on par with
> that of any other pointer other than char (i.e., a char that's not allowed
> to be used to access anything but a char object),
Are you sure a user isn't allowed to use placement new to construct an int in
the middle of a string? Maybe we should just encourage the use of u8string...
More information about the Gcc-bugs
mailing list