Bug when converting Cptr to c_p_pointer (to work as array): ` a: Pointer[u16[32768]] = c_p_pointer(vresult_l4, u16[32768]) ` ``` code generation error: Type number '14' not supported --> /home/eamiel/tmp_cp_release_01/copperhead/demo-apps/belex-direct-fragment/device/../mat_vec_device.py:279:5 | 279 | a: Pointer[u16[32768]] = c_p_pointer(vresult_l4, u16[32768]) ``` But i16 works: ` a: Pointer[i16[32768]] = c_p_pointer(vresult_l4, i16[32768])`
Activity
certik commentedon Jun 12, 2023
Thanks, that's a great bug report. We'll fix it quickly.
certik commentedon Jun 12, 2023
Looks like there are several related bugs, both in C and LLVM backends. The first minimal reproducible example to fix:
gives:
certik commentedon Jun 12, 2023
@ronnuriel the issue should be now fixed, please go ahead and try the latest LPython version and see if it works.