---
** [bugs:#140] C99 VLA in structures and initialisers**
**Status:** open
**Created:** Sat Sep 07, 2013 05:00 PM UTC by Gabriel Kerneis
**Last Updated:** Sat Sep 07, 2013 05:00 PM UTC
**Owner:** Gabriel Kerneis
There is a bug with the initialisers of variable-length arrays in structures.
The length of the VLA is computed by CIL based on the first initialiser in the
file. If later initialisers create larger arrays, those arrays are truncated
(with a warning) instead of updating the maximal length of the VLA.
It's not obvious if the correct fix is to compute the max size of the VLA, or
to add first-class support for VLAs in CIL.
---
Sent from sourceforge.net because cil-users@lists.sourceforge.net is subscribed
to https://sourceforge.net/p/cil/bugs/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/cil/admin/bugs/options. Or, if this is a mailing
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users