Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!purdue!haven!decuac!felix!info-ultrix From: kjones@talos.UUCP (Kyle Jones) Newsgroups: comp.unix.ultrix Subject: ULTRIX-32 VAX C compiler bug Message-ID: <85725@felix.UUCP> Date: 6 Mar 89 17:31:29 GMT Sender: info-ultrix@felix.UUCP Reply-To: kjones@talos.UUCP (Kyle Jones) Organization: Philip Morris Research Center, Richmond, VA Lines: 25 Approved: zemon@felix.UUCP Reply-Path: Reply-to: kjones@talos.UUCP (Kyle Jones) Anyone know why vcc(1) gripes about pointers to functions being used as functions. Example: main() { int atoi(); int (*ascii_to_integer)() = atoi; ascii_to_integer("3"); } Compiling this program gives "bug.c", line 6: %E-NOTFUNCTION, Function-valued expression not found. "bug.c", line 7: %I-NOBJECT, No object file produced. "bug.c", line 7: %I-SUMMARY, Completed with 1 error(s), 0 warning(s), and 1 informational messages. As far as I know K&R (1st edition) and the pANS allow this. I know I've been using it for years without problems. What's going on here?