Skip to content

Conversation

@gennaroprota
Copy link
Collaborator

@gennaroprota gennaroprota commented Dec 15, 2025

Constructing or assigning from a C-style string in a constexpr context triggers a libstdc++ issue which was fixed in GCC 12.4 and 13.3: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113200. We add corresponding tests, and then a workaround for the issue.

@gennaroprota gennaroprota force-pushed the issue#55 branch 2 times, most recently from 6bec231 to dec79a8 Compare December 15, 2025 17:46
… C-style string in a constexpr context

This triggers a libstdc++ issue which was fixed in GCC 12.4 and 13.3:
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113200>. If our CI shows
we bump into that bug, we'll add a workaround.
@gennaroprota gennaroprota force-pushed the issue#55 branch 3 times, most recently from 6636129 to f86b0c1 Compare December 15, 2025 18:19
@gennaroprota gennaroprota changed the title Add test cases for constexpr basic_static_string s("...") Make basic_static_string constructible and assignable from a C-style string in a constexpr context Dec 16, 2025
See the previous commit. This simple fix avoids calling Traits::move(),
which is where the bug resides.

This closes issue #55.
@gennaroprota gennaroprota merged commit bf98846 into develop Dec 16, 2025
59 of 60 checks passed
@gennaroprota gennaroprota deleted the issue#55 branch December 16, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants