[Bug libstdc++/94007] Appending a view into a string to the same string
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 3 02:27:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94007
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>The pointer returned may be invalidated by further calls to other member functions that modify the object.
This is not a bug. You are violating a constraint on the return value of
string::data that is the pointer might become invalid while string is being
modified.
More information about the Gcc-bugs
mailing list