summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add some missing diagnostics for C++11 narrowing conversions.Richard Smith2013-02-051-3/+2
| | | | llvm-svn: 174337
* PR13470: Ensure that copy-list-initialization isntantiates asRichard Smith2012-12-191-4/+50
| | | | | | | | | | | | copy-list-initialization (and doesn't add an additional copy step): Fill in the ListInitialization bit when creating a CXXConstructExpr. Use it when instantiating initializers in order to correctly handle instantiation of copy-list-initialization. Teach TreeTransform that function arguments are initializations, and so need this special treatment too. Finally, remove some hacks which were working around SubstInitializer's shortcomings. llvm-svn: 170489
* As we do with base and member initializers in a dependent class, delayDouglas Gregor2012-09-141-0/+16
| | | | | | | | | type checking for non-static data member initializers in a dependent class, because our ASTs lose too much information to when type-checking an initializer. Fixes <rdar://problem/11974632>, although the result is still rather unsatisfactory. llvm-svn: 163871
* PR13273: When performing list-initialization with an empty initializer list,Richard Smith2012-07-051-0/+23
| | | | | | | | | | | actually perform value initialization rather than trying to fake it with a call to the default constructor. Fixes various bugs related to the previously-missing zero-initialization in this case. I've also moved this and the other list initialization 'special case' from TryConstructorInitialization into TryListInitialization where they belong. llvm-svn: 159733
* When we determine that an initialization sequence failed due to anDouglas Gregor2012-04-101-0/+14
| | | | | | | | incomplete type, keep track of the actual type that was incomplete. Otherwise, we might fail to produce a diagnostic. Fixes PR12498. llvm-svn: 154432
* Properly handle explicit constructors in list-initialization. Fixes PR12120.Sebastian Redl2012-04-011-6/+14
| | | | llvm-svn: 153849
* Even more careful consideration of C++11 13.3.3.1p4. Fixes PR12241.Sebastian Redl2012-03-271-11/+6
| | | | llvm-svn: 153523
* More careful consideration of C++11 13.3.3.1p4. Fixes PR12257.Sebastian Redl2012-03-201-0/+28
| | | | llvm-svn: 153130
* Turn explicit construction of temporaries using initializer list syntax into ↵Sebastian Redl2012-03-081-0/+18
| | | | | | CXXTemporaryObjectExprs, not just CXXConstructExprs, which have a worrying tendency to vanish. Fixes PR12167. llvm-svn: 152340
* Tentatively fix PR12117. The test case from the bug now passes, and all ↵Sebastian Redl2012-02-291-0/+6
| | | | | | existing tests still pass, but there may still be corner cases. llvm-svn: 151716
* Implement a FIXME for conversion sequence distinction. Should fix PR12092.Sebastian Redl2012-02-271-0/+18
| | | | llvm-svn: 151577
* Fix parsing and processing initializer lists in return statements and as ↵Sebastian Redl2012-02-221-2/+9
| | | | | | direct member initializers. llvm-svn: 151155
* Don't route explicit construction via list-initialization through the ↵Sebastian Redl2012-02-131-5/+16
| | | | | | functional cast code path. It sometimes does the wrong thing, produces horrible error messages, and is just unnecessary. llvm-svn: 150408
* Employ DirectList initialized entities to properly sort through some ↵Sebastian Redl2012-02-121-0/+29
| | | | | | initialization edge cases. llvm-svn: 150342
* Fix parsing new expressions using init lists. Probably still do the wrong ↵Sebastian Redl2012-02-111-0/+68
| | | | | | | | thing in cases involving array new. Show that many cases using initializer list constructors work, in that they parse and pass semantic analysis. llvm-svn: 150316
* Overloading for initializer list construction.Sebastian Redl2011-12-221-5/+20
| | | | llvm-svn: 147156
* Fix a parser bug that prevented it from correctly parsing explicit construct ↵Sebastian Redl2011-12-221-1/+1
| | | | | | expressoins of the form T{args}. llvm-svn: 147155
* List-initialization via constructor part 1. Still needs: pretty-printing, ↵Sebastian Redl2011-12-221-0/+66
overloading, initializer_list. llvm-svn: 147145
OpenPOWER on IntegriCloud