Is this a bug in some C compilers?

Norman Diamond diamond at csl.sony.JUNET
Mon Jul 24 12:20:00 AEST 1989


In article <268 at nlgvax.UUCP> suhas at nlgvax.UUCP () writes:

>>The usage a.b when a is not a structure [or union] is allowed.

In article <10583 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:

>Not any more it isn't.

As Doug Gwyn has pointed out many times, compilers are permitted to
accept additional kinds of programs besides those that conform to
ANSI C.  The "weard" usage a.b (where a is not a structure or union)
is non-conforming, but might still be allowed by the vast majority
of compilers.

--
-- 
Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.jp at relay.cs.net)
  The above opinions are inherited by your machine's init process (pid 1),
  after being disowned and orphaned.  However, if you see this at Waterloo or
  Anterior, then their administrators must have approved of these opinions.



More information about the Comp.lang.c mailing list