// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s struct A { virtual ~A(); }; template struct B {}; struct C { template struct D { ~D() throw(); }; struct E : A { D d; //expected-error{{exception specification is not available until end of class definition}} }; B b; //expected-note{{in instantiation of template class 'B' requested here}} };