Open kumbayo opened 10 months ago
Hi, this is probably a low priority issue for us right now but since you've already investigated the issue quite a bit we would be happy to assist if you're interested in solving it :)
Hi, yes i am interested in solving it. I already have a working solution but might take some more time until i can properly submit it.
Describe the bug CodeGen fails when variable length array types are declared but not used in the program.
To Reproduce Save the following text to
example.st
Run
cargo run example.st
Remove the
//
in front ofarr: ExampleVarLengthArray;
The code now compiles without errorExpected behavior Code should compiles without error even when the type is not used.
Additional context This problem first appeared with the commit 28e89cca644caeccb79dc136413f1e61fce87c47 Parallel compilation support (#829)
Since then, in
generate_data_types()
,types
does not contain an entry for__arr_vla_1_examplestruct
anymore. When the VLA is used, the type__ptr_to___arr_vla_1_dint
is registered by an entry independencies