[PATCH] D17215: [Sema] Fix PR14211 Crash for explicit instantiation of overloaded template function within class template
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 5 17:35:32 PDT 2017
rjmccall added inline comments.
================
Comment at: lib/Sema/SemaTemplate.cpp:8985
+ // FIXME: Would this be considered an almost match as well?
+ continue;
}
----------------
These continues that you're adding are already at the end of the loop body, so this code is really confusing.
I think the template-specialization check here is trying to do the same thing you're doing: treat non-template matches specially. But your way of handling it is better, so I would just remove the check and all the breaks and continues so that we add the match to either NonTemplateMatch or TemplateMatches. (Please do rename Matches to TemplateMatches, though.)
https://reviews.llvm.org/D17215
More information about the cfe-commits
mailing list