incorrect code generated for complex record ofs
Submitted by Kristof Szabados
Assigned to Bence Janos Szabo
Link to original bug (#520608)
Description
The compiler is generating incorrect code for some complex record ofs. for example: " type component my_comp {}; type set of integer setof_int; // set of basic type type record of integer ROI;
testcase tsetofSubset1() runs on my_comp { var template setof_int vt_5_5 := {1,2,3};
template ROI t1_3 := { permutation( all from vt_5_5), 2,all from vt_5_5,3,4, permutation( all from vt_5_5)};
} "
produces code with incorrect size setting: " t1__3.set_size(4 + vt__5__5.n_elem() + vt__5__5.n_elem() + vt__5__5.n_elem() + vt__5__5.n_elem()); "
vt_5_5 is only referenced 3 times, but the generated code prepares for 4 references.
/already fixed in the designer/
Version: 6.2.0