blob: 1b8890a789b331399d53de3cef8a4c35c7b77ad1 [file] [log] [blame]
// PR c++/67139
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }
template <class T>
constexpr typename T::type::value_type _v = T::type::value;
template <class T> concept bool IsTrue_() { return _v<T>; }
template <class T> concept bool Unpossible() {
return IsTrue_<T &&>();
}
template <class> constexpr bool unpossible() { return false; }
Unpossible{ T }
constexpr bool unpossible() { return true; }
static_assert((!unpossible<void>()), "");