summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr70538.C
blob: 05665d6b93549104f59a85eda4527802b4329ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++11 } }

struct A;
template <typename> class C;
using PathComponentPiece = C<int>;
class B {
  B(int);
  template <typename T> B(T);
  B(C<A>);
};
template <typename> class C : B {
  using base_type = B;
  base_type::base_type;  // { dg-warning "access declarations" }
  PathComponentPiece m_fn1() { return PathComponentPiece(); }
};