// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T>classFoo{structBase:T{};// Test that this code no longer causes a crash in Sema. rdar://23291875
structDerived:Base,T{};};template<typename T>structFoo2{structBase1;// expected-note{{member is declared here}}
structBase2;// expected-note{{member is declared here}}
// Should not crash on an incomplete-type and dependent base specifier.
structDerived:Base1,Base2{};// expected-error {{implicit instantiation of undefined member 'Foo2<int>::Base1'}} \
expected-error {{implicit instantiation of undefined member 'Foo2<int>::Base2'}}
};
Foo2<int>::Derived a;// expected-note{{in instantiation of member class}}