Frama-C Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001718Frama-CKernelpublic2014-03-25 20:432015-11-04 08:37
Reporterpascal 
Assigned Tovirgile 
PrioritynormalSeverityfeatureReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001718: Nested VLA are not supported
DescriptionNote that I have never seen this feature actually used, but it appears to be supported by GCC and Clang.

To reiterate, I have never seen code that does int t[a][a];

This report is only for the sake of completeness.
Steps To Reproduce~/gitlab/frama-c $ bin/toplevel.opt -print t.c
[kernel] warning: cannot load plug-in `Aorai' (incompatible with Neon-20140301+dev).
[kernel] warning: cannot load plug-in `Obfuscator' (incompatible with Neon-20140301+dev).
[kernel] warning: cannot load plug-in `Report' (incompatible with Neon-20140301+dev).
[kernel] warning: cannot load plug-in `Security_slicing' (incompatible with Neon-20140301+dev).
[kernel] warning: cannot load plug-in `Wp' (incompatible with Neon-20140301+dev).
[kernel] preprocessing with "gcc -C -E -I. t.c"
t.c:4:[kernel] user error: Length of array is not a constant: a
t.c:4:[kernel] warning: Variable-sized local variable t
[kernel] user error: skipping file "t.c" that has errors.
[kernel] Frama-C aborted: invalid user input.
~/gitlab/frama-c $ cat t.c
int main(int c, char **v)
{
  int a = 3;
  int t[a][a];
  t[a-1][a-1] = 1;
}
~/gitlab/frama-c $ gcc -pedantic -std=c99 t.c
~/gitlab/frama-c $

TagsNo tags attached.
Attached Files

- Relationships
has duplicate 0002186closedvirgile 2D variable length array 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-03-25 20:43 pascal New Issue
2015-11-03 22:41 yakobowski Relationship added has duplicate 0002186
2015-11-04 08:37 signoles Assigned To => virgile
2015-11-04 08:37 signoles Status new => assigned


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker