summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/implicit5.C
blob: f25c08530db0e50c4003ec169455a76bbbe1d9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Test that the default B copy constructor calls the A member template
// constructor.
// { dg-options -std=c++0x }

struct A
{
  A() = default;
  A(A&&) = default;
  template <class T>
  A(const T& t) { t.i; }	// { dg-error "no member" }
};

struct B: A { };

int main()
{
  B b;
  B b2(b);
}