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 }}
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
struct.c:7:3 error: invalid program: invalid operators for '+' (expected either arithmetic types or pointer operation, got 'struct {
int i;
} * + struct {
int i;
} *'
++x;
^^
1 error generated
Potential cause of error, paraphrasing @jyn514 here: It thinks that it's adding a 1 of type pointer, but it's adding a 1 of type integer here. This is a bug in desugaring complex assignment then here. It needs to be smart and only cast if it would be valid.
The text was updated successfully, but these errors were encountered:
When attempting to pre-increment a pointer to a struct, compiler throws error that operation is not between arithmetic types or a pointer operation.
Code
Error
Potential cause of error, paraphrasing @jyn514 here: It thinks that it's adding a
1
of type pointer, but it's adding a1
of type integer here. This is a bug in desugaring complex assignment then here. It needs to be smart and only cast if it would be valid.The text was updated successfully, but these errors were encountered: