Eli Friedman
576cbd03b4
Make sure list-initialization of arrays works correctly in explicit type conversions. PR12121.
...
llvm-svn: 151674
2012-02-29 00:00:28 +00:00
Richard Smith
90e7c12961
Mark the parenthesized array member initialization diagnostic as DefaultError,
...
and move it out of -Wgnu so that -Wno-gnu leaves it enabled. As requested by
Eli.
llvm-svn: 150643
2012-02-16 00:54:02 +00:00
Richard Smith
ebeed41587
Support GCC's bug^Wextension allowing class array members to be initalized by a
...
parenthesized braced-init-list in the base/member initialization list.
llvm-svn: 150625
2012-02-15 22:38:09 +00:00
Sebastian Redl
2b80af4949
Don't route explicit construction via list-initialization through the functional cast code path. It sometimes does the wrong thing, produces horrible error messages, and is just unnecessary.
...
llvm-svn: 150408
2012-02-13 19:55:43 +00:00
Sebastian Redl
d74dd49065
Proper initializer list support for new expressions and type construct expressions. Array new still missing.
...
llvm-svn: 150346
2012-02-12 18:41:05 +00:00
Sebastian Redl
0501c63609
Change the way we store initialization kinds so that all direct inits can distinguish between list and parens form. This allows us to correctly diagnose the last test cases from litb.
...
llvm-svn: 150343
2012-02-12 16:37:36 +00:00
Sebastian Redl
72ef7bc2b5
Enable function call and some overload resolution with parameters of aggregate class type and initializer list arguments.
...
llvm-svn: 143462
2011-11-01 15:53:09 +00:00
Sebastian Redl
8b6412af46
Diagnose when omitting braces in direct list-initialization in C++0x.
...
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
2011-10-16 18:19:28 +00:00