Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 168
    • Issues 168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #1705

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
Assignee
Assign to
Time tracking