internal error: invalid array_length for given dimension
Submitted by Stef Walter
Link to original bug (#726478)
Description
Building the attached test case gives the following assertion during compilation. No output is generated.
void bar (ref string[] args) {
}
void foo ([CCode (array_length = false)] ref string[] args) {
bar (ref args);
}
void main () {
string[] array = {"foo", "bar"};
foo (ref array);
}
$ valac -C test.vala
error: internal error: invalid array_length for given dimension
Compilation failed: 1 error(s), 0 warning(s)
Encountered during seahorse trying to use vala.
Edited by Rico Tzschichholz