seem closely related. (I'm happy to move this if others have a better
idea of where to put it.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184402
91177308-0d34-0410-b5e6-
96231b3b80d8
class X { ~X(); }; // expected-note {{here}}
class Y : X { ~Y() {} }; // expected-error {{private destructor}}
+
+ namespace PR16370 { // This regressed the first time DR7 was fixed.
+ struct S1 { virtual ~S1(); };
+ struct S2 : S1 {};
+ struct S3 : S2 {};
+ struct S4 : virtual S2 {};
+ struct S5 : S3, S4 {
+ S5();
+ ~S5();
+ };
+ S5::S5() {}
+ }
}
namespace dr8 { // dr8: dup 45