public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/79452] Provide builtin to detect compile-time execution
[not found] <bug-79452-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-07 19:20 ` pinskia at gcc dot gnu.org
2021-12-07 21:58 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-07 19:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79452
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is done for C++23 but GCC implements __builtin_is_constant_evaluated also
for old C++ standards.
Anyways this is a dup of bug 100974.
*** This bug has been marked as a duplicate of bug 100974 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/79452] Provide builtin to detect compile-time execution
[not found] <bug-79452-4@http.gcc.gnu.org/bugzilla/>
2021-12-07 19:20 ` [Bug c++/79452] Provide builtin to detect compile-time execution pinskia at gcc dot gnu.org
@ 2021-12-07 21:58 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2021-12-07 21:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79452
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Well this request is satisfied by std::is_constant_evaluated() in C++20, which
is what __builtin_is_constant_evaluated() exists for. PR 100974 adds a newer
C++23 language feature that makes std::is_constant_evaluated() unnecessary.
This is still resolved one easy or another though.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-07 21:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-79452-4@http.gcc.gnu.org/bugzilla/>
2021-12-07 19:20 ` [Bug c++/79452] Provide builtin to detect compile-time execution pinskia at gcc dot gnu.org
2021-12-07 21:58 ` redi 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).