blob: f14ec2551a14fc36a3c1a3bd87c6a92ed77b21e8 [file] [log] [blame]
// PR 94287 ICE looking inside open template-parm level
// { dg-do run { target c++17 } }
// { dg-options -fconcepts }
template <typename T,
bool X = requires { requires (sizeof(T)==1); } >
int foo(T) { return X; }
int main() {
if (!foo('4'))
return 1;
if (foo (4))
return 2;
return 0;
}