]> granicus.if.org Git - clang/commit
PR22465: when performing list-initialization for a class type C, if we see an
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Feb 2015 07:02:11 +0000 (07:02 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Feb 2015 07:02:11 +0000 (07:02 +0000)
commit7cb6bf2c0c9632a4e5f2174d68378687799c37ec
tree69f345d29139b51a46fae84ccb3eb64e1d61ba3c
parent926060ac8046eba854826124cef96f5f25dae2ca
PR22465: when performing list-initialization for a class type C, if we see an
initializer of the form {x}, where x is of type C or a type derived from C,
perform *non-list* initialization of the entity from x, but create a
CXXConstructExpr that knows that we used list-initialization syntax.

Plus some fixes to ensure we mangle correctly in this and related cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228276 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ItaniumMangle.cpp
lib/AST/StmtPrinter.cpp
lib/Sema/SemaInit.cpp
test/CXX/drs/dr14xx.cpp
test/CodeGenCXX/mangle-exprs.cpp