Xref: utzoo news.software.b:3557 comp.unix.microport:3839 Path: utzoo!attcan!uunet!snorkelwacker!think!gem.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!splut!jay From: jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) Newsgroups: news.software.b,comp.unix.microport Subject: Cnews on System V/AT: "expression causes compiler loop" Message-ID: <3056@splut.conmicro.com> Date: 18 Nov 89 20:37:12 GMT Reply-To: jay@splut.conmicro.com (Jay "you ignorant splut!" Maynard) Organization: Confederate Microsystems, League City, TX Lines: 30 I'm trying to install C news, at the patchlevel 7/13 Nov 1989 level, on my System V/AT 2.4 system. Trying to compile relay/hdrdefs.c, I get: cc -I../include -I. -DVOID=int -DFLUSHEVERY=6 -O -c hdrdefs.c "hdrdefs.c", line 49: compiler error: expression causes compiler loop: try simplifying I just tried it by hand, without the -O, and got the same error. The relevant code is: #ifndef offsetof #define offsetof(type, mem) ((char *)&((type *)NULL)->mem - (char *)NULL) #endif static const char msgnm[] = "Message-ID:"; /* for rejection */ static const struct hdrdef msghdr = { msgnm, STRLEN(msgnm), offsetof(struct headers, h_msgid) }; ...with the last line being the one the compiler complains about. Any ideas about how to simplify this one? Am I the only person to run into this? -- Jay Maynard, EMT-P, K5ZC, PP-ASEL | Never ascribe to malice that which can jay@splut.conmicro.com (eieio)| adequately be explained by stupidity. {attctc,bellcore}!texbell!splut!jay +---------------------------------------- Shall we try for comp.protocols.tcp-ip.eniac next, Richard? - Brandon Allbery