Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!ames!apple!oliveb!amiga!boing!dale From: dale@boing.UUCP (Dale Luck) Newsgroups: comp.sys.amiga.tech Subject: Lattice bug I think in 5.04 Message-ID: <839@boing.UUCP> Date: 22 Jul 89 23:25:48 GMT Reply-To: dale@boing.UUCP (Dale Luck) Organization: Boing, Milpitas, Ca. Lines: 40 Found another bug in either the compiler or the linker. I'm not sure. The following are two files. Compile and linked under 5.04. The table initialization get's botched some how. /*bug6.c*/ #include extern foo(); struct qwe { int a; int (*f)(); }; struct qwe table[] = { { 1 , foo } }; main() { printf("foo=%lx\n",foo); printf("table=%lx\n",table[0].f); if (foo != table[0].f) printf("bad compiler or linker\n"); else printf("good compiler/linker\n"); } /* bug61.c */ foo() { return 1; } -- Dale Luck GfxBase/Boing, Inc. {uunet!cbmvax|pyramid}!amiga!boing!dale