After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756376 - Local arrays with length in namespace generate invalid C code
Local arrays with length in namespace generate invalid C code
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Arrays
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks: 647788
 
 
Reported: 2015-10-11 05:51 UTC by Ben
Modified: 2017-02-02 14:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
bug demo (118 bytes, text/x-vala)
2015-10-11 05:51 UTC, Ben
  Details
Fix emission of constant array length (1.87 KB, patch)
2016-10-02 13:41 UTC, Simon Werbeck
committed Details | Review

Description Ben 2015-10-11 05:51:10 UTC
Created attachment 313044 [details]
bug demo

In the attached file, the array's length is `Info.len`
In C, when declaring the array it's fine but when passed to the function it becomes literally `Info.len` and not `INFO_len`
Comment 1 Simon Werbeck 2016-10-02 13:41:05 UTC
Created attachment 336759 [details] [review]
Fix emission of constant array length
Comment 2 Rico Tzschichholz 2016-10-05 06:50:13 UTC
commit e7f987ab5da3bf618776572755570323d57bd9de
Author: Simon Werbeck <simon.werbeck@gmail.com>
Date:   Thu Sep 22 21:22:25 2016 +0200

    codegen: Fix emission of constant array length