non-constant size of 2-dim array causes error in recursive procedure
ID0000852: This issue was created automatically from Mantis Issue 852. Further discussion may take place here.
|Product Version||Frama-C Carbon-20110201||Target Version||-||Fixed in Version||-|
Calling "frama-c -val ftest.c" for the attached program results in a kernel error message "Invalid length in array type". The error vanishes if either
- the recursive call in the body is removed,
- the 2-dimensional array (b[a]) is made a one-dimensional one (b[a]),
- or the variable size (b[a]) is made constant (b). Since I cannot imagine why just the combination (recursion + two dimensions + variable size) shall be an error, I guess there is a bug here. Moreover, even the Jessie plug-in reports only warnings on ftest.c.