Article View: comp.sys.amiga.tech
Article #568Lattice bug I think in 5.04
From: Dale Luck
Date: Sat, 22 Jul 1989 23:25
Date: Sat, 22 Jul 1989 23:25
40 lines
988 bytes
988 bytes
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 <stdio.h>
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
Technical Details
Message-ID:
<839@boing.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!ames!apple!oliveb!amiga!boing!daleShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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