Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure to find reference to child virtual override in template class #1397

Open
Jacob-Burckhardt opened this issue Jul 31, 2020 · 0 comments

Comments

@Jacob-Burckhardt
Copy link

When the cursor is on Child::joe definition, rtags-find-references-at-point finds nothing. It should have found the call to joe in main().

template<typename T>
struct Parent {
   virtual void joe()=0;
};

template<typename T>
struct Child : public Parent<T> {
   virtual void joe() {};
};

int main() {
   Child<int> c;
   Parent<int> &p = c;
   p.joe();
}

If modified to remove templates, then it does find the call in main():

struct Parent {
   virtual void joe()=0;
};

struct Child : public Parent {
   virtual void joe() {};
};

int main() {
   Child c;
   Parent &p = c;
   p.joe();
}

#813 might be a related bug.

Environment (please complete the following information):

  • OS/Version: Linux (Debian 10.4)
  • RTags(rdm,rc): 2.38.131
  • Emacs: 26.1
  • LLVM/Clang: clang version 8.0.1-3~bpo10+1 (tags/RELEASE_801/final)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant