aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec8.C
blob: 873cf44e40762b473f0958759160fef16191ae7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile { target c++20 } }

template<int M, int N>
concept equal = M == N;

template<int M>
struct traits
{
  template<int N> requires equal<M, N>
    struct foo {};

  template<int N> requires equal<M, N> && (M >= 0) // { dg-bogus "not more constrained" }
    struct foo<N> {};
};