[Bug libstdc++/105995] QoI: constexpr basic_string variable must use all of its SSO buffer
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 16 19:20:53 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105995
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:98a0d72a610a87e8e383d366e50253ddcc9a51dd
commit r13-1139-g98a0d72a610a87e8e383d366e50253ddcc9a51dd
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Jun 16 14:57:32 2022 +0100
libstdc++: Support constexpr global std::string for size < 15 [PR105995]
I don't think this is required by the standard, but it's easy to
support.
libstdc++-v3/ChangeLog:
PR libstdc++/105995
* include/bits/basic_string.h (_M_use_local_data): Initialize
the entire SSO buffer.
* testsuite/21_strings/basic_string/cons/char/105995.cc: New test.
More information about the Gcc-bugs
mailing list