Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/class-deduction-alias13.C

raw
1 // PR c++/105655
2 // { dg-do compile { target c++20 } }
3
4 template <class T>
5 struct A
6 {
7 template <class L, class R>
8 struct B
9 {
10 B(const L & left, const R & right)
11 {}
12 };
13
14 template <class L, class R>
15 B(const L &, const R &) -> B<L, R>;
16 };
17
18 template <class L, class R>
19 using C = A<int>::B<L, R>;
20
21 int main()
22 {
23 C x{0, 0};
24 }