[Clang] Only compare template params of potential overload after checking...
[Clang] Only compare template params of potential overload after checking their decl context (#78139) Fixes a regression from 69066ab3 in which we compared the template lists of potential overloads before checkings their declaration contexts. This would cause a crash when doing constraint substitution as part of that template check, because we would try to refer to not yet instantiated entities (the underlying cause is unclear). This patch reorders (again) when we look at template parameter so we don't do it when checkings friends in different lexical contexts. Fixes #77953 Fixes #78101
Loading
Please sign in to comment