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