The call to cast crashes because getTemplateDecl returns null for TemplateTemplateParmDecls.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
We have to extend the check to cover type aliases as well. I've also updated the comment because TypeAliasDecl::Create never calls this constructor overload.
Comment Actions
Feel free to land with fixes.
lib/Sema/SemaDecl.cpp | ||
---|---|---|
155–156 | I think this change can just be s/cast/dyn_cast_or_null/ and inserting "if (!BasePrimaryTemplate) continue;" | |
test/SemaTemplate/ms-lookup-template-base-classes.cpp | ||
468–470 | These 'foo' identifiers are getting delayed by ADL because they are function calls. I would try to use an unqualified name to try to declare a member, since I believe only a type can occur there. |
I think this change can just be s/cast/dyn_cast_or_null/ and inserting "if (!BasePrimaryTemplate) continue;"