aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-inherit-ctor9.C
blob: 7d3201bff9f9537c80031724a0aca55c909d8a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/94719
// { dg-do compile { target concepts } }

template<typename T>
struct bar
{
  template<int N = 5> requires (N == 5)
  bar() { }
};

template<typename T>
struct foo : bar<T>
{
  using foo::bar::bar;
};

void baz()
{
  foo<int>{};
}