Kernel error with _Static_assert in a struct
ID0001977: This issue was created automatically from Mantis Issue 1977. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001977 | Frama-C | Kernel | public | 2014-11-20 | 2014-11-27 |
Reporter | Ian | Assigned To | signoles | Resolution | won't fix |
Priority | normal | Severity | minor | Reproducibility | always |
Platform | - | OS | Ubuntu | OS Version | - |
Product Version | Frama-C Neon-20140301 | Target Version | - | Fixed in Version | - |
Description :
When the _Static_assert keyword is used inside a struct, the kernel erroneously reports a syntax error and aborts.
Steps To Reproduce :
Create file test.c: struct { _Static_assert (1, "true"); };
Run: frama-c test.c
Output: [kernel] preprocessing with "gcc -C -E -I. test.c" test.c:3:[kernel] user error: syntax error [kernel] user error: skipping file "test.c" that has errors. [kernel] Frama-C aborted: invalid user input.