[PATCH] D30248: [libclang] Fix crash in member access code completion with implicit base

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 22 10:56:45 PST 2017


arphaman added a comment.

It seems that unresolved member expressions have other lookup issues. For example, this will crash when code-completing as well:

  struct Foo {
    void foo() const;
    static void foo(bool);
  };
  
  struct Bar: Foo {
    void foo(bool param) {
  this->Foo::foo(/*CC CRASH*/  );// unresolved member expression with an explicit base
    }
  };

Are we sure that a call to `AddFunctionCandidates` is the right way to gather the method overloads in this particular instance?


https://reviews.llvm.org/D30248





More information about the cfe-commits mailing list