llvm-project
0cd50b0d - [Clang][Sema] Avoid crash in overload diagnostics for invalid static deducing-this (#177783)

Commit
3 days ago
[Clang][Sema] Avoid crash in overload diagnostics for invalid static deducing-this (#177783) Fix #177741 Overload candidate diagnostics reserve a conversion slot for the object argument. For static methods this slot does not correspond to a real parameter, and for ill-formed declarations with an explicit object parameter we could index past the parameter list and crash in assert builds. Use isExplicitObjectMemberFunction() when mapping conversion slots to parameters and guard parameter-range computation to keep notes robust.
Author
Parents
Loading