ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / concepts / pr91073-2.C
blob2900aaeff6956a3386801e7a65801c30ff89e306
1 // { dg-do compile { target c++17 } }
2 // { dg-options "-fconcepts" }
4 template<typename P, typename Arghhh = void>
5 concept one_or_two = true;
7 template<typename P>
8 concept one = one_or_two<P>;
10 template<typename T>
11 constexpr void
12 foo()
14   if (one<T>) // OK
15   { }
17   if (one_or_two<T>) // { dg-bogus "before" }
18   { }