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 735159 - valac fails to generate C code when copying the value of a constant multi-dimensional array to a non-constant one
valac fails to generate C code when copying the value of a constant multi-dim...
Status: RESOLVED DUPLICATE of bug 604371
Product: vala
Classification: Core
Component: Arrays
0.24.x
Other Linux
: Normal blocker
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on: 604371
Blocks:
 
 
Reported: 2014-08-21 13:35 UTC by Nathan Lowe
Modified: 2018-02-18 08:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example (281 bytes, text/x-vala)
2014-08-21 13:35 UTC, Nathan Lowe
Details

Description Nathan Lowe 2014-08-21 13:35:20 UTC
Created attachment 284087 [details]
Example

When trying to assign the value of a constant multi-dimensional array to a non-constant multidimensional array, valac appears to not generate any errors, but fails to create C code and throws the following:

"**
ERROR:valaccodearraymodule.c:1105:vala_ccode_array_module_real_get_array_length_cvalue: assertion failed: (size != null && size.size >= dim)
Aborted (core dumped)"

I have tested this with both static and non-static members. I can confirm that removing the const keyword from the source array resolves the issue.
Comment 1 Evan Nemerson 2014-08-21 20:10:47 UTC
Bug #604371 needs to be fixed before this makes any sense.
Comment 2 Rico Tzschichholz 2018-02-18 08:32:08 UTC

*** This bug has been marked as a duplicate of bug 604371 ***