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 

Error in initialization using array constructors

 
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: 1886

PostPosted: Sat Jan 06, 2024 9:10 pm    Post subject: Error in initialization using array constructors Reply with quote

The following test program
Code:
program ibug

   integer, PARAMETER :: INTPAT(0:7) = ichar(achar([128,64,32,16,8,4,2,1]))
   character(1), PARAMETER :: CHARPAT(0:7) = achar([128,64,32,16,8,4,2,1])

   print '(8Z3.2)', INTPAT, ichar(CHARPAT)

end program

should (and does, with Gfortran and Intel) output
Code:
 80 40 20 10 08 04 02 01
 80 40 20 10 08 04 02 01

but with FTN95 I get
Code:
 80 80 80 80 80 80 80 80
 80 80 80 80 80 80 80 80
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sun Jan 07, 2024 9:51 am    Post subject: Reply with quote

mecej4

Thank you for the feedback. I have logged this issue for investigation.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Fri Feb 02, 2024 12:13 pm    Post subject: Reply with quote

This failure has now been fixed for the next release of FTN95.
Back to top
View user's profile Send private message AIM Address
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