Non-Portable pointer assignment?
Doug Gwyn
gwyn at smoke.brl.mil
Sat Jun 8 13:37:43 AEST 1991
In article <1991Jun7.161752.9625 at zoo.toronto.edu> henry at zoo.toronto.edu (Henry Spencer) writes:
-It's worse than that. Recently it was pointed out that a named enumeration
-type is in scope as soon as its name is seen, and since there is no provision
-for incomplete enumerated types, that means that `sizeof(enumtype)' is legal
-before the members have been seen... so the size of the type cannot depend
-on the values of the members!! (In X3J11's defence, this probably was not
-deliberate.)
I'm not sure X3J11 would agree with the above interpretation.
If anybody really cares about this, they should request a formal ruling on it.
More information about the Comp.std.c
mailing list