Fails to cope with multiple non-contiguous constant array instantiations
ID0001553: This issue was created automatically from Mantis Issue 1553. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001553 | Frama-C | Kernel > ACSL implementation | public | 2013-11-08 | 2016-01-26 |
Reporter | BluewaterSys | Assigned To | yakobowski | Resolution | fixed |
Priority | normal | Severity | minor | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C Fluorine-20130601 | Target Version | - | Fixed in Version | Frama-C Magnesium |
Description :
Frama-C fails to parse the following legitimate C code:
struct a { int b; }; struct a *d[] = {&(struct a){1}}; int wibble(void) { return 1; } struct a *e[] = {&(struct a){1}};
The error message returned is: [kernel] preprocessing with "gcc -C -E -I. test.c" test.c:12:[kernel] user error: Global __constr_expr_0 was already defined at test.c:5 [kernel] user error: skipping file "test.c" that has errors. [kernel] Frama-C aborted: invalid user input.