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
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
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
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