blob: 1226b35deb701346d1c487001f9b00dd969853f6 [file] [log] [blame]
Davide Italiano922b7022015-07-25 01:19:32 +00001// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s
2
3struct A {
4 virtual ~A();
5};
6template <class>
7struct B {};
8struct 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};