Opened 8 years ago
Closed 8 years ago
#32 closed defect (fixed)
assert.h fails to compile in non __STRICT_ANSI__ mode
| Reported by: | Thierry Delisle | Owned by: | |
|---|---|---|---|
| Priority: | major | Component: | cfa-cc |
| Version: | 1.0 | Keywords: | |
| Cc: |
Description
The following code fails to compile :
extern void foo();
void libFloor() {
({
if( 1 == 0 )
;
else
foo();
});
}
This code is equivalent to what can be in assert.h
Note:
See TracTickets
for help on using tickets.
The problem is the gcc lambda expression ({...}). It works if the lambda expression is commented out.