[Bug libstdc++/104222] std::basic_string::resize_and_overwrite passes an unexpected value to user's callable

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 25 11:46:44 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104222

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-01-25
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
IIRC I did this intentionally, to allow the callback to use the true capacity.
But I agree it's non-conforming.


More information about the Gcc-bugs mailing list