We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
The following code compiles fine with C V7.20
struct { struct { char a; } t; } b; void main(void) { b.t.a=0; (&b)->t.a=0; (&(b.t))->a=0; (*) }
and gives an error with V8.05a for line (*)
TEST.C(10): error C200: left side of '->' requires struct/union pointer
FYI, It is the result of a macro a macro that expects a pointer and for which the address of a struct member was passed. GeertB
(&b.t)->a = 0;
It represents the same as (*) (. is evaluated before &) and produces the same error with v8.05a