Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!bloom-beacon!eru!hagbard!sunic!news.funet.fi!funic!csc.fi!hnevanlinna From: hnevanlinna@csc.fi Newsgroups: comp.sys.mac.programmer Subject: Bug in MPW C 3.1 compiler Message-ID: <1990Oct19.081120.1@csc.fi> Date: 19 Oct 90 08:11:20 GMT Sender: usenet@nic.funet.fi Organization: Finnish Academic and Research Network Project - FUNET Lines: 28 A friend of mine has found a bug in MPW C 3.1. ( MPW 3.1 also ). /* Crashes MPW at compile time! Bug found by P.Janhunen 90-09-19 */ #include void SomeProcedure(int func(int x)) { printf("Within SomeProcedure: func(10) returned %d\n",func(10)); } int Square(int arg) { return arg*arg; } main() { SomeProcedure(Square); } This bug occurs with or without extra inits, so it seems to be a real problem. Jouni Ryn