diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-09 06:48:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-09 06:48:56 +0000 |
commit | 0db1ea5f686068114324fff222fd6b2d39e8ae55 (patch) | |
tree | 54dd52e077952d59eda0c414607d4051666e74f9 /clang/lib/Sema/SemaOverload.cpp | |
parent | f86b5dc7009e7686fc31ff0d1e8a7bff138607cd (diff) | |
download | bcm5719-llvm-0db1ea5f686068114324fff222fd6b2d39e8ae55.tar.gz bcm5719-llvm-0db1ea5f686068114324fff222fd6b2d39e8ae55.zip |
Fix overload resolution for the initialization of a multi-dimensional
array from a braced-init-list. There seems to be a core wording wart
here (it suggests we should be testing whether the elements of the init
list are implicitly convertible to the array element type, not whether
there is an implicit conversion sequence) but our prior behavior appears
to be a bug, not a deliberate effort to implement the standard as written.
llvm-svn: 169690
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 57e74d06b95..cfbd33c0d34 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -4377,7 +4377,7 @@ TryListConversion(Sema &S, InitListExpr *From, QualType ToType, bool toStdInitializerList = false; QualType X; if (ToType->isArrayType()) - X = S.Context.getBaseElementType(ToType); + X = S.Context.getAsArrayType(ToType)->getElementType(); else toStdInitializerList = S.isStdInitializerList(ToType, &X); if (!X.isNull()) { |