Differential Revision: https://reviews.llvm.org/D37978
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313866
91177308-0d34-0410-b5e6-
96231b3b80d8
if (CME->getQualifier())
CallIsNonVirtual = true;
- if (const Expr *Base = CME->getBase()->IgnoreImpCasts()) {
+ if (const Expr *Base = CME->getBase()) {
// The most derived class is marked final.
if (Base->getBestDynamicClassType()->hasAttr<FinalAttr>())
CallIsNonVirtual = true;
#if !PUREONLY
//expected-note-re@-2 2{{{{^}}Calling '~E'}}
#endif
+
+namespace PR34451 {
+struct a {
+ void b() {
+ a c[1];
+ c->b();
+ }
+};
+
+class e {
+ public:
+ void b() const;
+};
+
+class c {
+ void m_fn2() const;
+ e d[];
+};
+
+void c::m_fn2() const { d->b(); }
+}