
FTNCHEK Version 3.3 November 2004

File comclash.f:

      1 	common /abc/ x,y,z
      2 	abc = 5
      3 	x = abc
      4 	end

Module %MAIN: prog

Common blocks referenced:

       ABC         

Variables:
 
      Name Type Dims     Name Type Dims     Name Type Dims     Name Type Dims
       ABC real*            X real*            Y real*            Z real*  

* Variable not declared. Type has been implicitly defined.


      5 	subroutine sub1
      6 	common /abc/ x,y,z
      7 	real abc(5)
      8 	x = abc(1)
      9 	call sub2(x,y)
     10 	call sub2(1.0,2)
     11 	end

Module SUB1: subr

External subprograms referenced:

      SUB2: subr   

Common blocks referenced:

       ABC         

Variables:
 
      Name Type Dims     Name Type Dims     Name Type Dims     Name Type Dims
       ABC real  1          X real*            Y real*            Z real*  

* Variable not declared. Type has been implicitly defined.


Warning in module SUB1: Variables used before set
    ABC used at line 8; never set

     12 	subroutine sub2(a,b)
     13 	common /abc/ x,i,z
     14 	x = abc(1)
     15 	end

Module SUB2: subr

External subprograms referenced:

       ABC: real*  

Common blocks referenced:

       ABC         

Variables:
 
      Name Type Dims     Name Type Dims     Name Type Dims     Name Type Dims
         A real*            B real*            I intg*            X real*  
         Z real*  

* Variable not declared. Type has been implicitly defined.


Warning in module SUB2: Variables declared but never referenced:
    A declared at line 12 (dummy argument)
    B declared at line 12 (dummy argument)

     16 	function abc(n)
     17 	abc = n*n
     18 	end

Module ABC: func: real*

Variables:
 
      Name Type Dims     Name Type Dims     Name Type Dims     Name Type Dims
       ABC real*            N intg*  

* Variable not declared. Type has been implicitly defined.



Nonportable usage: File contains tabs

 0 syntax errors detected in file comclash.f
 7 warnings issued in file comclash.f

Warning: Common block ABC Elements never used, never set:
    Z

Warning: Common block ABC has same name as a subprogram (nonstandard)
    Declared as common block in module SUB2 line 13 file comclash.f
    Declared as subprogram in module ABC line 16 file comclash.f

Warning: Common block ABC data type mismatch at position 2:
    Variable Y in module %MAIN line 1 file comclash.f is type real
    Variable I in module SUB2 line 13 file comclash.f is type intg

Warning: Subprogram SUB1 never invoked
    Defined in module SUB1 line 5 file comclash.f

Warning: Subprogram SUB2 never invoked
    Defined in module SUB2 line 12 file comclash.f

Warning: Subprogram SUB2 argument usage mismatch at position 1:
    Dummy arg A in module SUB2 line 12 file comclash.f is aliased to common
 var 1: X in block ABC which is modified
    Actual arg X in module SUB1 line 9 file comclash.f is in common block ABC

Warning: Subprogram SUB2 argument data type mismatch at position 2:
    Dummy arg B in module SUB2 line 12 file comclash.f is type real
    Actual arg 2 in module SUB1 line 10 file comclash.f is type intg

Warning: Subprogram ABC never invoked
    Defined in module ABC line 16 file comclash.f
