Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!mailrus!tut.cis.ohio-state.edu!osu-cis!att-cb!att-ih!ihnp4!cord!gwr From: gwr@cord.UUCP (GW Ryan) Newsgroups: comp.lang.c++ Subject: Re: possible bugs Message-ID: <554@cord.UUCP> Date: 4 Apr 88 03:04:51 GMT References: <6112@watdragon.waterloo.edu> <552@cord.UUCP> <6170@watdragon.waterloo.edu> Reply-To: gwr@cord.UUCP (59451-GW Ryan) Distribution: na Organization: AT&T Bell Laboratories, Liberty Corner Lines: 33 Keywords: pointer-to-function parameters In article <6170@watdragon.waterloo.edu> gjditchfield@violet.waterloo.edu (Glen Ditchfield) writes: >In article <552@cord.UUCP> gwr@cord.UUCP (59451-GW Ryan) writes: >>In article <6112@watdragon.waterloo.edu> gjditchfield@violet.UUCP writes: >>> typedef int (*PFCCI)(char, char); // ptr to fn mapping 2 chars to int. >>> void g( int (*p)(char, char) ); >>i don't understand what you are trying to do here. g() is supposed to be >>a function taking what parameters? > OK. *now* I understand what you want. It does seem to be a bug. The following works with cfront 1.2.3 (except for warnings about unused variables x and y): int foo(int x, int (*y)(char, char)) { return 0; } HOWEVER, the following does not work: I get syntax errors: int foo(int (*y)(char, char)) { return 0; } very strange... jerry ryan