Fix overload resolution for the initialization of a multi-dimensional
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 9 Dec 2012 06:48:56 +0000 (06:48 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 9 Dec 2012 06:48:56 +0000 (06:48 +0000)
commit0db1ea5f686068114324fff222fd6b2d39e8ae55
tree54dd52e077952d59eda0c414607d4051666e74f9
parentf86b5dc7009e7686fc31ff0d1e8a7bff138607cd
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
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp
clang/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp