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 652380 - [regression] Fixed sized arrays missing length variable
[regression] Fixed sized arrays missing length variable
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-12 05:23 UTC by Robert Ancell
Modified: 2011-06-12 07:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Ancell 2011-06-12 05:23:40 UTC
Using the current git master, the following fails:

public class ArrayTest
{
    public static void set_p (uchar[] p)
    {
        p[0] = 0;
    }

    public static int main (string[] args)
    {
        uchar p[3];
        set_p (p);
        return 0;
    }
}

array_test.vala.c:67:23: error: ‘p_length1’ undeclared (first use in this function)
Comment 1 Luca Bruno 2011-06-12 07:53:44 UTC
commit e83585bd7cafcf09e0cb94082642f4711a99fc23
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Sun Jun 12 09:42:52 2011 +0200

    codegen: Fix access to arrays with fixed length
    
    Fixes bug 652380.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.