Argyrios Kyrtzidis
|
6709e7d4cc
|
Fix crash caused by this:
void f() {
int +; // crash here
}
llvm-svn: 58846
|
2008-11-07 13:01:22 +00:00 |
Chris Lattner
|
8cc7be369c
|
Fix PR3001: if we have an error parsing an initializer, make sure to remove
the designator corresponding to it, otherwise Sema and later parsing will
get confused.
llvm-svn: 58603
|
2008-11-03 09:28:22 +00:00 |
Nuno Lopes
|
dd30e2c677
|
add the other test case for completeness and to avoid regressions in the future
llvm-svn: 55629
|
2008-09-02 10:10:14 +00:00 |
Eli Friedman
|
de09ce03c4
|
Fix for PR2747: allow pointer->int casts with a null base; these are
offset-of-like expressions.
llvm-svn: 55627
|
2008-09-02 09:37:00 +00:00 |
Daniel Dunbar
|
8d57244601
|
Add test case for function-pointer-cast-of-global as constant
expression.
llvm-svn: 55323
|
2008-08-25 20:08:27 +00:00 |
Chris Lattner
|
5caafe598f
|
add testcase we already handle.
llvm-svn: 54967
|
2008-08-19 00:58:40 +00:00 |
Chris Lattner
|
28b4294ccf
|
wrap some long diagnostics, make 'initializer is not a constant' diagnostic
a bit more clear (rdar://5646070)
llvm-svn: 54606
|
2008-08-10 01:58:45 +00:00 |
Eli Friedman
|
3360d898ec
|
Make sure to allow assigning a pointer to a bool.
llvm-svn: 51778
|
2008-05-30 18:07:22 +00:00 |
Eli Friedman
|
86346ede95
|
Fix a couple of bugs found by Neil Booth in the const-ness checking.
llvm-svn: 51361
|
2008-05-21 03:39:11 +00:00 |
Chris Lattner
|
cfcabaeb7f
|
add testcase for pr2050 which is now fixed.
llvm-svn: 50610
|
2008-05-04 01:13:36 +00:00 |
Eli Friedman
|
4297826cac
|
Improve diagnostic for illegal array initialization.
llvm-svn: 46869
|
2008-02-08 00:48:24 +00:00 |
Chris Lattner
|
6311b58000
|
all filevar's have static storage. Previously a global with
extern storage class was returning false from hasStaticStorage.
Ted, please review this.
llvm-svn: 44515
|
2007-12-02 07:47:49 +00:00 |
Chris Lattner
|
da22eeca44
|
add several cases that Expr::hasStaticStorage missed, pointed out by Oliver Hunt
llvm-svn: 44376
|
2007-11-27 21:35:27 +00:00 |
Chris Lattner
|
c3ebf29ef6
|
Implement test/Sema/init.c by treating functions as constants.
llvm-svn: 43599
|
2007-11-01 02:45:17 +00:00 |