1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// P2564R3 // { dg-do compile { target c++20 } } // { dg-options "-fno-immediate-escalation" } consteval int id(int i) { return i; } constexpr int f (auto i) { return id (i); // { dg-error "not a constant expression" } } int g () { return f (42); }