https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121054
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <[email protected]>: https://gcc.gnu.org/g:e7ba197b19b37bb244b31c95f9c7f46749d06e48 commit r16-5280-ge7ba197b19b37bb244b31c95f9c7f46749d06e48 Author: Karpalo Toivonen <[email protected]> Date: Sat Nov 8 15:51:46 2025 +0200 libstdc++: std::bitset<0>("zero") should throw std::invalid_argument [PR121054] According to the standard the first n characters of a bitset constructor string need to be checked instead of only N. libstdc++-v3/ChangeLog: PR libstdc++/121054 * include/std/bitset: Add string check to constructor. * testsuite/20_util/bitset/121054.cc: New test. * testsuite/20_util/bitset/cons/constexpr_c++23.cc: Fix. Co-authored-by: Jonathan Wakely <[email protected]>
