https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108243
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=97553 CC| |ppalka at gcc dot gnu.org --- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> --- IIUC __builtin_is_constant_evaluated() currently acts as an optimization barrier for the frontend's speculative folding since we don't want to prematurely fold is_constant_evaluated() to false if the expression in question would later be manifestly constant evaluated (in which case is_constant_evaluated() must be folded to true). PR97553 is caused by the same issue I think.