Cnews on System V/AT: "expression causes compiler loop"
Henry Spencer
henry at utzoo.uucp
Tue Nov 21 05:18:39 AEST 1989
In article <3056 at splut.conmicro.com> jay at splut.conmicro.com (Jay "you ignorant splut!" Maynard) writes:
>"hdrdefs.c", line 49: compiler error: expression causes compiler loop:
>try simplifying
The offsetof() macro has a tendency to stress-test compilers. Try:
#define offsetof(type, mem) ((int)&((type *)NULL)->mem)
as an alternative.
--
A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology
megabyte of flaming. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.unix.microport
mailing list