blob: ea51e31817e2afee2bc83d1391bd18051da5fef6 [file] [log] [blame]
// PR c++/66091
// { dg-do compile { target c++17_only } }
// { dg-additional-options "-fconcepts" }
template<typename T>
concept bool C1()
{
return requires() { typename T::type1; };
}
template<typename T>
concept bool C2()
{
return C1<T>() && requires() { typename T::type2; };
}
template<C1 T>
struct S {
S& operator++() { return *this; }
S& operator++() requires C2<T>() { return *this; }
};