https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Slightly bigger testcase that shows that also consteval if is affected:
struct S { ~S(); };
int
foo ()
{
S s;
if constexpr (true)
return 0;
else
return 1;
}
#if __cpp_if_consteval >= 202106L
int
bar ()
{
S s;
if consteval
{
return 0;
}
else
{
return 1;
}
}
#endif
