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