Arguments are not checked when function call precedes function declaration
ID0000728: This issue was created automatically from Mantis Issue 728. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0000728 | Frama-C | Kernel | public | 2011-02-17 | 2014-02-12 |
Reporter | virgile | Assigned To | yakobowski | Resolution | fixed |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C Carbon-20110201 | Target Version | - | Fixed in Version | Frama-C Oxygen-20120901 |
Description :
Cil allows a function to be called before being defined but does not check that the number/types of argument correspond. See for instance tests/misc/call_variadic.i, which fails with frama-c -check, while the error should be reported directly when type-checking.