MSC v5.1 Bug???

Craig Dawson X2267 cxd at genrad.UUCP
Sat Aug 20 07:33:07 AEST 1988


   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  \ /



More information about the Comp.lang.c mailing list