P
Paul Edwards
The following code:
int main(void)
{
char *x;
(void **)x += 1;
return (0);
}
gives "invalid lvalue in assignment" when compiled with
the 64-bit Fedora Core 4 build of gcc 4.1.1.
But it works fine with other versions of gcc, and other compilers,
and the operation I want done looks entirely logical to me.
Is this code C90-compliant or not?
Thanks. Paul.
int main(void)
{
char *x;
(void **)x += 1;
return (0);
}
gives "invalid lvalue in assignment" when compiled with
the 64-bit Fedora Core 4 build of gcc 4.1.1.
But it works fine with other versions of gcc, and other compilers,
and the operation I want done looks entirely logical to me.
Is this code C90-compliant or not?
Thanks. Paul.