View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1887
|
Posted: Fri Nov 18, 2016 2:31 pm Post subject: Compiler bug |
|
|
Given this stripped-down source, the FTN95 compiler V8.05 fails in 32-bit mode, but works in 64-bit mode.
Code: | subroutine wr_val_e4 (val, str, n)
real :: val
character :: str*(*)
integer*8 :: v, ten = 10
integer :: n, z = ichar ('0')
!
v = abs(val)
str(n:n) = char (mod(v,ten)+z)
return
end subroutine wr_val_e4
|
The error messages are
Code: | 0008) str(n:n) = char (mod(v,ten)+z)
*** Operand incompatible with opcode
*** Invalid machine instruction generated
|
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Sat Nov 19, 2016 10:16 am Post subject: |
|
|
Thank you for the bug report. I have logged it a a bug that needs fixing. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Thu Jan 26, 2017 11:20 am Post subject: |
|
|
This has now been fixed for the next release. |
|
Back to top |
|
|
|