ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / concepts / var-templ2.C
blobc564c079c7798908c2b8eef81f1968c1e097d686
1 // PR c++/67139
2 // { dg-do compile { target c++17 } }
3 // { dg-options "-fconcepts" }
5 template <class T>
6 constexpr typename T::type::value_type _v = T::type::value;
8 template <class T> concept IsTrue_ = _v<T>;
10 template <class T> concept Unpossible =
11   IsTrue_<T &&>;
13 template <class> constexpr bool unpossible() { return false; }
14 template<Unpossible T>
15 constexpr bool unpossible() { return true; }
17 static_assert((!unpossible<void>()), "");