* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / implicit8.C
blob68575ca13690a5d78681c56f1d03330c23f614f5
1 // The hack for PR c++/44909 breaks this testcase.  We need feedback
2 // from the C++ committee to know how to proceed.
3 // { dg-do compile { target c++11 } }
5 struct A
7   A();
8   A(A&);
9 };
11 struct B;
12 struct BP
14   BP(const B&);
17 struct B
19   B();
20   B(B&&);
21   B(const BP&);
24 // If B(B&&) suppresses the B copy constructor, then copying the B
25 // subobject of C should use B(const BP&).  But we ignore that constructor
26 // in order to break the cycle in 44909.  Perhaps the move ctor shouldn't
27 // suppress the copy ctor?
28 // As of DR 1082, it doesn't suppress it.
29 struct C: A, B { };             // { dg-error "use of deleted" }
31 C c;
32 C c2(c);                        // { dg-error "deleted" }