$ clang -S -emit-llvm test.c && llvm-cbe test.ll && clang -c test.cbe.c
test.cbe.c:53:87: error: subscripted value is not an array, pointer, or vector
var_name_tmp__3 = ((&((struct l_struct_struct_OC_A)(uintptr_t)UINT64_C(9))->field0[((int64_t)UINT64_C(0))]));
I think that generating code should be :
var_name_tmp__3 = *((&((struct l_struct_struct_OC_A*)(uintptr_t)UINT64_C(9))->field0.array[((int64_t)UINT64_C(0))]));
And this code has tested. It's ok.
I guess LLVM-CBE misses the operation ".array" for the test case
Hi, I had bug after translating code. my C code. File "test.c":
It is translated by LLVM-CBE:
` And Then compile error:
I think that generating code should be :
var_name_tmp__3 = *((&((struct l_struct_struct_OC_A*)(uintptr_t)UINT64_C(9))->field0.array[((int64_t)UINT64_C(0))]));
And this code has tested. It's ok. I guess LLVM-CBE misses the operation ".array" for the test case