[comp.lang.c] MSC v5.1 Bug???

cxd@genrad.UUCP (Craig Dawson X2267) (08/20/88)

   Hi!

	I think I found a bug in Microsoft 'C' version 5.1, unless
   this is some kind of ANSI thing.

		cl -c x.c 

	produces the error message:

		x.c(6) : error C2129: static function 'z' not found

	I can find it ;-)

    ------ x.c :
    
    x()
    {
    	static z();
    
    	z();
    }
    
    y()
    {
    	static z();
    
    	z();
    }
    
    
    static z()
    {
    	;
    }
    
    ------ x1.c :   this file compiles with no errors
    
    static z();
    
    x()
    {
    	z();
    }
    
    y()
    {
    	z();
    }
    
    
    static z()
    {
    	;
    }
    
    ------
    
	Is this really a bug?  Am I missing something?

			Thanks in advance,

				Craig



-- 
--------------------------------------------------------
Disclaimer: Don't use on heavily soiled carpets!  / \
UUCP  : ...decvax!genrad!cxd      (Craig Dawson) /\ /\
USnail: GenRad, 300 Baker Ave., Concord MA 01742  \ /