1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s 2*67e74705SXin Li 3*67e74705SXin Li struct A { 4*67e74705SXin Li virtual ~A(); 5*67e74705SXin Li }; 6*67e74705SXin Li template <class> 7*67e74705SXin Li struct B {}; 8*67e74705SXin Li struct C { 9*67e74705SXin Li template <typename> 10*67e74705SXin Li struct D { 11*67e74705SXin Li ~D() throw(); 12*67e74705SXin Li }; 13*67e74705SXin Li struct E : A { 14*67e74705SXin Li D<int> d; //expected-error{{exception specification is not available until end of class definition}} 15*67e74705SXin Li }; 16*67e74705SXin Li B<int> b; //expected-note{{in instantiation of template class 'B<int>' requested here}} 17*67e74705SXin Li }; 18