https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102000
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Johel Ernesto Guerrero Peña from comment #1) > Can https://bugs.llvm.org/show_bug.cgi?id=51560 be fixed as part of this? That is: struct X{ int i; consteval X() = default; // consteval X() {} }; int main () { auto x = X(); (void)x; } Which is also accepts-invalid