]> granicus.if.org Git - clang/commit
For C++11, do more checking of initializer lists up-front, enabling some subset of...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 14 Jul 2011 19:08:10 +0000 (19:08 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 14 Jul 2011 19:08:10 +0000 (19:08 +0000)
commitac420c5053d6aa41d59f782caad9e46e5baaf2c2
tree78cf1c1ea5b5f72f15fbd7f8826dbfc8d0b38014
parentdc998b44454eb39fa39d701712cb8f448f2612c1
For C++11, do more checking of initializer lists up-front, enabling some subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either.
This is a first baby step towards supporting generalized initializer lists. This also removes an aggregate
test case that was just plain wrong, assuming that non-aggregates couldn't be initialized with initializer lists
in C++11 mode.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135177 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p1-0x.cpp [deleted file]
test/SemaCXX/aggregate-initialization.cpp
test/SemaCXX/generalized-initializers.cpp