[all-commits] [llvm/llvm-project] bb3f5f: [clang] Array list initialization (pre-p0388)
Nathan Sidwell via All-commits
all-commits at lists.llvm.org
Thu Sep 9 08:30:19 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bb3f5f5d788dd9375ab260f77612fab4a707a1ac
https://github.com/llvm/llvm-project/commit/bb3f5f5d788dd9375ab260f77612fab4a707a1ac
Author: Nathan Sidwell <nathan at acm.org>
Date: 2021-09-09 (Thu, 09 Sep 2021)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Sema/Overload.h
M clang/lib/Sema/SemaOverload.cpp
A clang/test/SemaCXX/overload-ary-bind.cpp
Log Message:
-----------
[clang] Array list initialization (pre-p0388)
Extends handling of list initialization of bounded array parameters.
This adds the missing checks on converting each initializer for both
std::initializer_list and arrays. And extends
CompareImplicitConversionSequence to compares array size, for two
conversions to array type.
As noted in this patch, there's a defect in the std concerning the
partial orderability of conversion sequences. DR2492 has a suggested
direction that will be simple to add once it (hopefully) is accepted.
Differential Revision: https://reviews.llvm.org/D103088
More information about the All-commits
mailing list