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.

Reply via email to