[PATCH] D87563: [Sema] Improve overload resolution

2020-11-01 Thread Mark de Wever via Phabricator via cfe-commits
Mordante updated this revision to Diff 302140. Mordante added a comment. - No longer store the `InitListExpr` instead store the size difference between the array and initializer list. - Removed the dead code for P0388. - Don't add overloads where the initializer list has more elements than the

[PATCH] D87563: [Sema] Improve overload resolution

2020-11-01 Thread Mark de Wever via Phabricator via cfe-commits
Mordante added inline comments. Comment at: clang/include/clang/Sema/Overload.h:548-549 + +/// The std::initializer_list expression to convert from. +const InitListExpr *StandardInitializerListFrom{nullptr}; + rsmith wrote: > Storing the `IntListExpr` her

[PATCH] D87563: [Sema] Improve overload resolution

2020-09-13 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Looks like this is an implementation of DR1307. Please also add a test to `test/CXX/drs/dr13xx.cpp`. Comment at: clang/include/clang/Sema/Overload.h:548-549 + +/// The std::initializer_list expression to convert from. +const InitListExpr *Standa

[PATCH] D87563: [Sema] Improve overload resolution

2020-09-12 Thread Mark de Wever via Phabricator via cfe-commits
Mordante created this revision. Mordante added reviewers: lvoufo, rsmith. Mordante added a project: clang. Mordante requested review of this revision. The overload resolution for initializer lists was incomplete. It did not properly take the number of elements in the target array into account. Th