forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiler bug

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 674

PostPosted: Fri Nov 18, 2016 2:31 pm    Post subject: Compiler bug Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 4821
Location: Salford, UK

PostPosted: Sat Nov 19, 2016 10:16 am    Post subject: Reply with quote

Thank you for the bug report. I have logged it a a bug that needs fixing.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 4821
Location: Salford, UK

PostPosted: Thu Jan 26, 2017 11:20 am    Post subject: Reply with quote

This has now been fixed for the next release.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group