You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template <bool B>
structX_base
{
X_base(int) requires B { }
};
structX : X_base<true>
{
using X_base::X_base;
};
voidf()
{
X x{42};
}
<source>:4:26: error: substitution into constraint expression resulted in a non-constant expression
X_base(int) requires B { }
^
<source>:4:26: note: subexpression not valid in a constant expression
1 error generated.
Compiler returned: 1
The text was updated successfully, but these errors were encountered:
I'm not sure whether this is intended or not, so I'm just putting it out here.
https://godbolt.org/z/Xbx832
The text was updated successfully, but these errors were encountered: