parsec icon indicating copy to clipboard operation
parsec copied to clipboard

jdf2c issue when dealing with certain case

Open QingleiCao opened this issue 1 year ago • 1 comments

When writing in PTG like this: READ D <- desc_D(0, %{ return desc_f_data->super.rank_of(&desc_f_data->super, 0, n); %})

It shows: #error Expression return desc_f_data->super.rank_of(&desc_f_data->super, 0, n); has not been generated

@therault suggested using a task local variable but I need to understand more.

QingleiCao avatar Mar 17 '24 14:03 QingleiCao

This should be valid but for now we can't deal with this.

A workaround solution is to declare a local, initialize the local with the generated expression, and then use the local in the flow.

abouteiller avatar May 03 '24 14:05 abouteiller