Article View: comp.sys.atari.st
Article #36218MWC 3.06 problem
From: HAHN_K
Date: Sat, 28 Jan 1989 12:53
Date: Sat, 28 Jan 1989 12:53
43 lines
1326 bytes
1326 bytes
Last night I came across a problem I simply do not understand. Of
course it must be my mistake, compilers always are correct ;-) I
tried to declare a struct with space for a pointer to a function
and to later evaluate that very pointer. Nothing unusual, yeah?
Well, MWC 3.0.6 gave me an 'in cc1: Internal compiler error: no match,
op=61' ... an left. Here's the code, stripped down to the very problem:
/* test_struc.c */
#include "test.h"
activate()
{
float f1;
f1 = (*my_mind.fp)();
}
/* end of test_struc.c */
/* test.h */
typedef struct {
int a,b,c;
float f;
float (*fp)();
} MIND;
MIND my_mind;
/* end of test.h */
I guess you can tell me why this doesn't work? You remember the Pet Shop
Boys (or was it Frank Sinatra?): WHAT HAVE I DONE TO DESERVE THIS?
Cheers,
-Klaus.
Klaus Hahn
Marburg, West-Germany
Bitnet: HAHN_K@DMRHRZ11
Bix: K_HAHN
Technical Details
Message-ID:
<8901281252.AA28514@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!rutgers!ucsd!ucbvax!DMRHRZ11.BITNET!HAHN_KShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!rutgers!ucsd!ucbvax!DMRHRZ11.BITNET!HAHN_K From: HAHN_K@DMRHRZ11.BITNET Newsgroups: comp.sys.atari.st Subject: MWC 3.06 problem Message-ID: <8901281252.AA28514@ucbvax.Berkeley.EDU> Date: 28 Jan 89 12:53:05 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 43 X-Unparsable-Date: Sat, 28 Jan 89 13:15:59 CET