aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction34.C
blob: 26c063a9e729b4d2d7d9b99a938413441640fc49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile { target c++17 } }

template <class T>
struct A
{
  template <class U>
  static constexpr bool B = U();

  template <class U, bool V = B<U>>
  A(T, U);
};

A a (1,2);