Non-Portable pointer assignment?

Henry Spencer henry at zoo.toronto.edu
Sat Jun 8 02:17:52 AEST 1991


In article <1991Jun7.013605.728 at tkou02.enet.dec.com> diamond at jit533.enet@tkou02.enet.dec.com (Norman Diamond) writes:
>If you really want to be horrified, I cannot find any requirement that
>an enumeration type actually be able to hold all of the values of its
>members...

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.)
-- 
"We're thinking about upgrading from    | Henry Spencer @ U of Toronto Zoology
SunOS 4.1.1 to SunOS 3.5."              |  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.std.c mailing list