ULTRIX-32 VAX C compiler bug

Kyle Jones kjones at talos.UUCP
Tue Mar 7 03:31:29 AEST 1989


Reply-to: kjones at 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?



More information about the Comp.unix.ultrix mailing list