Attempt to initialize variable-sized arrays
Submitted by Andrei Zisu
Link to original bug (#782101)
Description
The following snippet:
const int width = 50;
const int height = 50;
uint8 drawbuf[width*height*3];
Vala attempts to transform into the following code:
guint8 drawbuf[(width * height) * 3] = {0};
Throwing the following error: "variable-sized object may not be initialized", perhaps due to the {0} added there.
Vala 0.34.7
Edited by Corentin Noël