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

Incorrectly resolved base template specialisations #535

Open
ddobrev opened this issue Aug 6, 2015 · 1 comment
Open

Incorrectly resolved base template specialisations #535

ddobrev opened this issue Aug 6, 2015 · 1 comment

Comments

@ddobrev
Copy link
Contributor

ddobrev commented Aug 6, 2015

If a class derives from a template specialisation, our AST reports its base as a the template class and not as the specialisation. The following example in particular causes a crash:

template <int N, int... I>
struct build_index_impl : build_index_impl<N - 1, N - 1, I...> {};
@ddobrev
Copy link
Contributor Author

ddobrev commented Aug 6, 2015

Clang seems not to report a declaration for "build_index_impl<N - 1, N - 1, I...>" - just a type. Since we mirror Clang, we should have no (null) declaration too for BaseClassSpecifier.Class.

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