Silverfrost Forums

Welcome to our forums

Spurious compile warning with EQUIVALENCE

26 Dec 2008 11:20 #4137

The following code gives the spurious compile warning: 'Variable I has been used without being given an initial value'.

PROGRAM BUG01

COMMON /A/ J
COMMON /B/ K(1)
EQUIVALENCE (I,J)
  
J = 5; WRITE (*,*) I

WRITE (*,*) 'Press any key to continue.'; READ *

END
27 Dec 2008 9:53 #4138

Thanks for this. We will take a look at it.

30 Dec 2008 9:25 #4146

This bug has now been fixed for the next release.

Please login to reply.