I spotted some issues with consteval call in some contexts.
consteval int f1() { return 0; } consteval auto g() { return f1; } consteval int h(int (*p)() = g()) { return p(); } // currently generate an error constexpr auto e = g(); // currently generate 2 errors instead of 1. auto l2 = [](int (*p)() = g()) consteval { return p(); }; // currently generate an error
this patch fixes these issues