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 

Internal Compiler Error

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

PostPosted: Wed Apr 15, 2020 1:11 pm    Post subject: Internal Compiler Error Reply with quote

The following code requires the /alt option since it uses a kind number of 4 for a function of type Logical. If the option is specified, FTN95 Version 8.62 compiles it fine. If the option is left out, instead of a meaningful error message we see strange responses.

The code:

Code:
   LOGICAL(4) FUNCTION COMPARE(NB)
   IMPLICIT NONE
   CHARACTER(15)::LIST(6)
       CHARACTER(*)::NB
       INTEGER(4)::I
       
       DATA (LIST(I),I=1,6)/'Hidrógeno','Helio','Litio','Berilio','Boro','Carbono'/
       
       COMPARE=.FALSE.
       DO I=1,6
           IF(INDEX(TRIM(NB),TRIM(LIST(I)))>0) THEN
               COMPARE=.TRUE.
           ENDIF
       ENDDO
   END FUNCTION


Without any options, we see:

Code:
R:\lang>ftn95 logifn.f90
[FTN95/Win32 Ver. 8.62.0 Copyright (c) Silverfrost Ltd 1993-2020]
0010)        DO I=1,6
*** Operand incompatible with opcode
*** Invalid machine instruction generated


With /64, we see:

Code:
[FTN95/x64 Ver. 8.62.0 Copyright (c) Silverfrost Ltd 1993-2020]
0001)    LOGICAL(4) FUNCTION COMPARE(NB)
*** Internal compiler error
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Apr 15, 2020 1:28 pm    Post subject: Reply with quote

Thank you for the feedback. I have made a note of this error.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Wed Apr 15, 2020 3:18 pm    Post subject: Reply with quote

These two failures have now been fixed for the next release of FTN95.

The problem is that FTN95 supports LOGICAL*8 in theory but not always in practice.
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