GNOME Bugzilla – Bug 735159
valac fails to generate C code when copying the value of a constant multi-dimensional array to a non-constant one
Last modified: 2018-02-18 08:32:08 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.
Bug #604371 needs to be fixed before this makes any sense.
*** This bug has been marked as a duplicate of bug 604371 ***