aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/var-templ3.C
blob: 22f07eef827aa8d885451bcb899811fc96ccfd00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/68666
// { dg-do compile { target c++17 } }
// { dg-options "-fconcepts" }

struct A {
  template <class>
  static constexpr bool val = true;
};

template <class T>
concept bool C = A::val<T>;

C{T} struct B {};