blob: be6409ebad817ac59812c41f52c33a22c3c42034 [file] [log] [blame]
// PR c++/67018
// { dg-do compile { target c++2a } }
template <typename T>
constexpr bool Val = true;
template <class I>
concept InputIterator = requires (I i) {
requires Val<decltype(i++)>;
};
template <class I>
concept ForwardIterator = InputIterator<I> && true;
template<InputIterator>
constexpr bool f() { return false; }
template<ForwardIterator>
constexpr bool f() { return true; }
static_assert(f<int*>());