public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function
[not found] <bug-70816-4@http.gcc.gnu.org/bugzilla/>
@ 2021-03-14 21:15 ` arthur.j.odwyer at gmail dot com
2021-12-15 22:16 ` ldionne.2 at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: arthur.j.odwyer at gmail dot com @ 2021-03-14 21:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70816
Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arthur.j.odwyer at gmail dot com
--- Comment #2 from Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> ---
Confirmed, I'm also seeing this in C++20 mode. This affects libc++'s
`char_traits<char>::length(const char *)`.
Example test case: https://godbolt.org/z/MTq1ex
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function
[not found] <bug-70816-4@http.gcc.gnu.org/bugzilla/>
2021-03-14 21:15 ` [Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function arthur.j.odwyer at gmail dot com
@ 2021-12-15 22:16 ` ldionne.2 at gmail dot com
2021-12-15 23:50 ` redi at gcc dot gnu.org
2022-01-26 17:08 ` msebor at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: ldionne.2 at gmail dot com @ 2021-12-15 22:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70816
Louis Dionne <ldionne.2 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ldionne.2 at gmail dot com
--- Comment #3 from Louis Dionne <ldionne.2 at gmail dot com> ---
We are having to add a workaround in libc++ to implement constexpr std::string:
https://reviews.llvm.org/D115795
It would be awesome if this could be fixed! (if so, please drop us a line and
we'll remove our workaround)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function
[not found] <bug-70816-4@http.gcc.gnu.org/bugzilla/>
2021-03-14 21:15 ` [Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function arthur.j.odwyer at gmail dot com
2021-12-15 22:16 ` ldionne.2 at gmail dot com
@ 2021-12-15 23:50 ` redi at gcc dot gnu.org
2022-01-26 17:08 ` msebor at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2021-12-15 23:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70816
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Our std::char_traits has similar branches for constant evaluation (and the rest
of the library does too for memcpy etc.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function
[not found] <bug-70816-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-12-15 23:50 ` redi at gcc dot gnu.org
@ 2022-01-26 17:08 ` msebor at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-01-26 17:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70816
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|msebor at gcc dot gnu.org |unassigned at gcc dot gnu.org
Status|ASSIGNED |NEW
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
I'm not working on this anymore.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-26 17:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-70816-4@http.gcc.gnu.org/bugzilla/>
2021-03-14 21:15 ` [Bug c++/70816] bogus error __builtin_strcmp is not a constant expression in a constexpr function arthur.j.odwyer at gmail dot com
2021-12-15 22:16 ` ldionne.2 at gmail dot com
2021-12-15 23:50 ` redi at gcc dot gnu.org
2022-01-26 17:08 ` msebor at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).