]> granicus.if.org Git - clang/commit
Switch more of Sema::CheckInitializerTypes over to
authorDouglas Gregor <dgregor@apple.com>
Sat, 19 Dec 2009 03:01:41 +0000 (03:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 19 Dec 2009 03:01:41 +0000 (03:01 +0000)
commit7abfbdbc97ad8e7f340789f751df1e32b10118b4
treec98c3dd47e10bceea032ec5fb2b44306f109dacd
parent29f1a6070ac35fcbea9241c843df7f3f7c5c3228
Switch more of Sema::CheckInitializerTypes over to
InitializationSequence. Specially, switch initialization of a C++
class type (either copy- or direct-initialization).

Also, make sure that we create an elidable copy-construction when
performing copy initialization of a C++ class variable. Fixes PR5826.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91750 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
lib/Sema/SemaInit.h
test/CXX/temp/temp.decls/temp.class/temp.static/p1-inst.cpp
test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp
test/CXX/temp/temp.param/p3.cpp
test/CodeGenCXX/constructor-init.cpp
test/SemaCXX/condition.cpp
test/SemaCXX/conversion-function.cpp
test/SemaCXX/converting-constructor.cpp
test/SemaCXX/copy-initialization.cpp
test/SemaCXX/dcl_init_aggr.cpp
test/SemaCXX/default1.cpp
test/SemaCXX/nested-name-spec.cpp
test/SemaTemplate/default-expr-arguments.cpp
test/SemaTemplate/fun-template-def.cpp