I've fixed this bug in 7.1RC1. It may have been causing core dumps by
dereferencing a null function pointer. As it was the Sun compiler
flagged it as an error. (SC5.0 on Solaris 2.6.)
Interestingly other compilers on other platforms accept a function as
a controlling expression in an if statement without complaint. That
expression should have scalar type, i.e. either arithmetic or pointer.
This test program demonstrates Sun catching the error.
$ cc funcptr.c
"funcptr.c", line 13: controlling expressions must have scalar type
cc: acomp failed for funcptr.c
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete.forman@westerngeco.com -./\.- opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef -./\.- Hughes or their divisions.