-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cgen incorrectly considers type to have C array semantics #1416
Comments
There are two problems with the generated C code:
Both problems stem from Whether this behaviour is correct (as in, The current meaning could be summarized as:
According to this meaning, I'd say that the current |
As I raised in matrix, my thinking is that it should be an error, because: my present understanding is that |
Example
provides the following compilation error:
operand type 'NU64 (*)[2]' {aka 'long long unsigned int (*)[2]'} is incompatible with argument 1 of '__atomic_add_fetch'
see the following cgen
This is corrected by changing the int128 definition to the following:
The text was updated successfully, but these errors were encountered: