Eli Friedman
feb4cc1c6a
Add errors for some illegal constructs (specifically, "int a = {{3}};"
...
and "int a = {};"). I'll adjust the tests in a bit.
llvm-svn: 51265
2008-05-19 20:12:18 +00:00
Eli Friedman
5a36d3fffb
Some more SemaInit cleanup.
...
llvm-svn: 51262
2008-05-19 20:00:43 +00:00
Eli Friedman
23a9e3176c
Various fixes; solves (almost) all of the test regressions that would be
...
caused by enabling SemaInit.
llvm-svn: 51261
2008-05-19 19:16:24 +00:00
Steve Naroff
125d73dc84
Several fixes to SemaInit.cpp. It's still not enabled (since it fails a few tests). Expect to enable it very soon.
...
llvm-svn: 50688
2008-05-06 00:23:44 +00:00
Steve Naroff
f8ecff2a94
Replace Sema::CheckInitializerListTypes() with a helper class (InitListChecker) that synthesizes implicit InitListExpr's when appropriate (see InitListExpr comments in Expr.h for more details). I also moved the code to SemaInit.cpp, to help reduce clutter in SemaDecl.cpp.
...
NOTE: This work is incomplete and still fails many tests (as a result, it isn't enabled yet). Nevertheless, I wanted to check it in so I can work on it from home.
llvm-svn: 50544
2008-05-01 22:18:59 +00:00