Skip to content

int t[static 2] is not supported as function argument

ID0000519: This issue was created automatically from Mantis Issue 519. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0000519 Frama-C Kernel public 2010-06-25 2014-02-12
Reporter pascal Assigned To virgile Resolution fixed
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Boron-20100401 Target Version - Fixed in Version Frama-C Carbon-20101201-beta1

Description :

The C99 feature allowing to declare arrays in function arguments is not supported by the parser.

To reproduce: ~/ppc $ cat p.c void f(int t[static 2]); ~/ppc $ cat t.c void f(int t[static 2]) { return; } ~/ppc $ bin/toplevel.opt t.c [kernel] preprocessing with "gcc -C -E -I. t.c" t.c:1:[kernel] user error: syntax error [kernel] user error: skipping file "t.c" that has errors. [kernel] Frama-C aborted because of an invalid user input. ~/ppc $ bin/toplevel.opt p.c [kernel] preprocessing with "gcc -C -E -I. p.c" p.c:1:[kernel] user error: syntax error [kernel] user error: skipping file "p.c" that has errors. [kernel] Frama-C aborted because of an invalid user input. ~/ppc $

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information