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
  • #57

cabs2cil fails with statements in expression in a question

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


Id Project Category View Due Date Updated
ID0002508 Frama-C Kernel public 2020-06-10 2020-10-06
Reporter JoGi Assigned To AllanBlanchard Resolution open
Priority low Severity minor Reproducibility always
Platform Linux OS Ubuntu OS Version 18.04 LTS
Product Version Frama-C 19-Potassium Target Version - Fixed in Version -

Description :

When you have a statement in expression ( https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html ) in a question expression for example « 0 ? ({ printf("1"); }): ({ printf("1"); }); », the type-checker fails.

Additional Information :

If the question expression is not a statement itself (but, for example, a right-value) then the type checking doesn't fail.

Steps To Reproduce :

frama-c ex_stmt_exp.c -kernel-debug 1 Should do the trick.

Attachments

  • ex_stmt_expr.c
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking