On Tue, 2012-07-31 at 10:28 +1200, John Harper wrote:
> Is that program not standard-conforming, or has g95 a bug?
A simplification of John's program:
module M
intrinsic HUGE
end module M
program P
use M, only: BIG => HUGE
print *, big(1), big(1.0e0), big(1.0d0)
end program P
works as I would expect it to with ifort version 11.0 Build 20090131 and
12.0 Build 20101116, NAG version 5.2(668), gfortran version 4.4.6
20110731, and LF95 version L6.20e.
I don't have g95.
Offhand, I'd say that g95 has a bug if it fails for this program, in
which HUGE is explicitly declared in M to be intrinsic.
|