[Bug c++/79452] Provide builtin to detect compile-time execution

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 7 21:58:52 GMT 2021


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.


More information about the Gcc-bugs mailing list