summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement DR1270: braces can be elided in all aggregate initialization, notRichard Smith2013-06-061-14/+13
| | | | | | | just copy-list-initialization in a variable declaration. This effectively reverts r142147. llvm-svn: 183397
* PR15132: Replace "address expression must be an lvalue or a functionRichard Smith2013-02-021-0/+5
| | | | | | | | | | | | | | designator" diagnostic with more correct and more human-friendly "cannot take address of rvalue of type 'T'". For the case of & &T::f, provide a custom diagnostic, rather than unhelpfully saying "cannot take address of rvalue of type '<overloaded function type>'". For the case of &array_temporary, treat it just like a class temporary (including allowing it as an extension); the existing diagnostic wording for the class temporary case works fine. llvm-svn: 174262
* Fix overload resolution for the initialization of a multi-dimensionalRichard Smith2012-12-091-1/+10
| | | | | | | | | | 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
* PR12670: Support for initializing an array of non-aggregate class type from anRichard Smith2012-07-071-0/+29
| | | | | | | initializer list. Patch by Olivier Goffart, with extra testcases by Meador Inge and Daniel Lunow. llvm-svn: 159896
* Make sure list-initialization of arrays works correctly in explicit type ↵Eli Friedman2012-02-291-0/+14
| | | | | | conversions. PR12121. llvm-svn: 151674
* Mark the parenthesized array member initialization diagnostic as DefaultError,Richard Smith2012-02-161-1/+1
| | | | | | | and move it out of -Wgnu so that -Wno-gnu leaves it enabled. As requested by Eli. llvm-svn: 150643
* Support GCC's bug^Wextension allowing class array members to be initalized by aRichard Smith2012-02-151-1/+1
| | | | | | parenthesized braced-init-list in the base/member initialization list. llvm-svn: 150625
* Don't route explicit construction via list-initialization through the ↵Sebastian Redl2012-02-131-0/+7
| | | | | | functional cast code path. It sometimes does the wrong thing, produces horrible error messages, and is just unnecessary. llvm-svn: 150408
* Proper initializer list support for new expressions and type construct ↵Sebastian Redl2012-02-121-0/+7
| | | | | | expressions. Array new still missing. llvm-svn: 150346
* Change the way we store initialization kinds so that all direct inits can ↵Sebastian Redl2012-02-121-0/+2
| | | | | | distinguish between list and parens form. This allows us to correctly diagnose the last test cases from litb. llvm-svn: 150343
* Enable function call and some overload resolution with parameters of ↵Sebastian Redl2011-11-011-1/+34
| | | | | | aggregate class type and initializer list arguments. llvm-svn: 143462
* Diagnose when omitting braces in direct list-initialization in C++0x.Sebastian Redl2011-10-161-0/+26
This also applies to C99-style aggregate literals, should they be used in C++11, since they are effectively identical to constructor call list-initialization syntax. llvm-svn: 142147
OpenPOWER on IntegriCloud