https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126314
--- Comment #1 from eczbek.void at gmail dot com --- Reduced a little bit: https://godbolt.org/z/91bxj4jW1 ``` constexpr bool is_consteval() { if consteval { return true; } else { return false; } } consteval int foo(int n) { return n; } struct base { int data; constexpr base(auto n) : data(is_consteval() ? foo(n) : n) {} }; struct derived : base { using base::base; }; int main() { derived(0); } ```
