https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119150
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
CC| |mpolacek at gcc dot gnu.org,
| |ppalka at gcc dot gnu.org
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reduced:
auto consteval consteval_id(auto x) { return x; }
int main() {
bool b = consteval_id(__builtin_is_constant_evaluated());
if (!b)
__builtin_abort();
}
Changed with r14-4140 "c++: Move consteval folding to cp_fold_r"