Debian Codegraph @

gcc/testsuite/g++.dg/init/synth3.C

raw
1 // Test that synthesizing the C copy constructor doesn't require B<int> to
2 // be complete.
3
4 template <class T>
5 struct B
6 {
7 typename T::NT nt;
8 };
9
10 struct A
11 {
12 A ();
13 A (const A&);
14 A (const B<int>&);
15 };
16
17 struct C: A { };
18
19 C c;
20 C c2(c);
21