dale@boing.UUCP (Dale Luck) (07/23/89)
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!dalewalker@sas.UUCP (Doug Walker) (07/31/89)
In article <839@boing.UUCP> dale@boing.UUCP (Dale Luck) writes: > >The following are two files. Compile and linked under 5.04. I believe Dale means he compiled and linked under 5.03.xx, a beta version prior to 5.04. There is no 5.04 as of yet. The current version of the compiler is 5.02. Please ignore the man behind the curtain. --Doug