Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-inherit-ctor5.C

raw
1 // { dg-do compile { target concepts } }
2
3 template <class T> struct A
4 {
5 constexpr A(T) requires (sizeof(T) > 1) {}
6
7 A(T);
8 };
9
10 template <class T> struct B: A<T>
11 {
12 using A<T>::A;
13 };
14
15 int main()
16 {
17 constexpr B<int> b = 42;
18 }