You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ICE gcc_jit_block_add_assignment: mismatching types: assignment to input_register #830
This looks already fixed by #874 (commit 6ecabe8), which landed on master on April 30.
I reproduced it locally to confirm. If I revert that commit's change and rebuild the backend, the exact error from this report comes back:
gcc_jit_block_add_assignment: mismatching types: assignment to input_register (type: __int8_t *) from &stack_var_1 (type: __int8_t[0] __attribute__((aligned(1))) *)
With the fix in place the snippet compiles fine. The change casts the input value to the register type before the assignment when the two differ, which covers the &() case where the pointer is typed as a pointer to a zero-length array.
Activity
Dnreikronos commentedon May 30, 2026
This looks already fixed by #874 (commit
6ecabe8), which landed on master on April 30.I reproduced it locally to confirm. If I revert that commit's change and rebuild the backend, the exact error from this report comes back:
With the fix in place the snippet compiles fine. The change casts the input value to the register type before the assignment when the two differ, which covers the
&()case where the pointer is typed as a pointer to a zero-length array.Probably safe to close.
cc// @antoyo and @matthiaskrgr
antoyo commentedon May 31, 2026
Fixed by #874.
Indeed, thanks for pointing that out.