wesommer@ATHENA.MIT.EDU (Bill Sommerfeld) (12/30/88)
It seems reasonable (to me at least) for a C compiler to complain about the following source file: ---- static int foo(); static int (*bar)() = foo; ---- since foo is never defined anywhere in the file. GCC (1.32/VAX) doesn't complain. But then again, neither does PCC, or High C, or Domain/OS C; all these compilers merely treat "foo" as if it were declared "extern" rather than "static". For you language lawyers out there: does the dpANS say anything about this? Ken Raeburn looked at it (very briefly) but couldn't find anything explicit about undefined static functions (it was mentioned that declared but undefined static "objects" were initialized to zero, but the definition of "object" used in the dpANS appears to exclude function bodies). - Bill