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
// substitution failure, type 'int' cannot be used prior to '::',
// though gcc accepts this.
template
struct B{
template requires true || T::value
static void foo(U)
{}
};
int main()
{
foo(0);
B::foo(0);
}
The text was updated successfully, but these errors were encountered:
Extended Description
// works
//template requires true || T::value
//void foo(T)
//{}
// substitution failure for T::value
template
void foo(T) requires true || T::value
{}
// substitution failure, type 'int' cannot be used prior to '::',
// though gcc accepts this.
template
struct B{
template requires true || T::value
static void foo(U)
{}
};
int main()
{
foo(0);
B::foo(0);
}
The text was updated successfully, but these errors were encountered: