Non-Portable pointer assignment?

Doug Gwyn gwyn at smoke.brl.mil
Mon Jun 10 12:54:52 AEST 1991


In article <1991Jun9.224624.3859 at zoo.toronto.edu> henry at zoo.toronto.edu (Henry Spencer) writes:
-In article <16359 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) 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.
-What part of it do you think they would disagree with?  I see no
-"interpretation" involved.

For one, the claim that "there is no provision for incomplete enumerated types".
It seems to me that the case in point provides a perfect counterexample.



More information about the Comp.std.c mailing list