[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:
template <template <typename> class Actor = actor>
This may trigger null pointer dereference of `DC` (because it calls `cast`). If the default template argument is removed, the crash goes away.
More information about the cfe-commits