[PATCH] D41575: [index] Return when DC is null in handleReference
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 3 09:38:02 PST 2018
MaskRay added a comment.
HighCommander4 narrowed it down https://github.com/jacobdufault/cquery/issues/219#issuecomment-354903152 to a much simpler reproduce:
c++
template <typename>
struct actor;
template <template <typename> class Actor = actor>
struct terminal;
This may trigger null pointer dereference of `DC` (because it calls `cast`). If the default template argument is removed, the crash goes away.
Repository:
rC Clang
https://reviews.llvm.org/D41575
More information about the cfe-commits
mailing list