Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!im4u!rutgers!sri-spam!mordor!lll-lcc!pyramid!voder!apple!kanner From: kanner@apple.UUCP (Herbert Kanner) Newsgroups: comp.lang.c++ Subject: bug Message-ID: <1224@apple.UUCP> Date: Tue, 30-Jun-87 19:32:22 EDT Article-I.D.: apple.1224 Posted: Tue Jun 30 19:32:22 1987 Date-Received: Thu, 2-Jul-87 01:49:44 EDT Organization: Apple Computer, Inc., Cupertino, USA Lines: 27 Can anyone shed light on the following: The file dcl1.c contains the following four lines. int thing1(int *()); int thing2(int, int *()); int thing3(int (*)()); int thing4(int, int (*)()); The result of a C++ compilation is below: CC dcl1.c: "dcl1.c", line 1: error: syntax error "dcl1.c", line 2: error: syntax error "dcl1.c", line 3: error: syntax error "dcl1.c", line 3: error: syntax error "dcl1.c", line 3: error: syntax error 5 errors The one I really want is thing3. I want to declare a function whose parameter is a pointer to a function returning an int. The other three lines were exploratory, trying to isolate the apparent bug. It is interesting that the compiler accepts thing4 but not thing3. -- Herb Kanner Apple Computer, Inc. {idi, ios, nsc}!apple!kanner