// RUN: %clang_cc1 -fsyntax-only -verify %s // PR4381 template struct X {}; template struct Y : public X::X { }; // PR4621 class A1 { A1(int x) {} }; template class B1 : public A1 { B1(C x) : A1(x.x) {} }; class A2 { A2(int x, int y); }; template class B2 { A2 x; B2(C x) : x(x.x, x.y) {} }; template class B3 { C x; B3() : x(1,2) {} }; // PR4627 template class insert_iterator { _Container* container; insert_iterator(_Container& __x) : container(&__x) {} }; // PR4763 template struct s0 {}; template struct s0_traits {}; template struct s1 : s0::t0> { s1() {} }; // PR6062 namespace PR6062 { template class A : public T::type { A() : T::type() { } template A(U const& init) : T::type(init) { } template A(U& init) : U::other_type(init) { } }; } template struct X0 : T::template apply { X0(int i) : T::template apply(i) { } }; // PR7698 namespace PR7698 { template class A { char mA[sizeof(Type *)]; A(): mA() {} }; }