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 

FTN95 fails for include line after CONTAINS

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



Joined: 15 Apr 2021
Posts: 1

PostPosted: Fri Apr 16, 2021 8:46 am    Post subject: FTN95 fails for include line after CONTAINS Reply with quote

In a larger project the compiler fails in compiling source code having includes after the CONTAINS statement, so I did a test with a small program:

program including
implicit none
integer :: a, b, c
a = 1
b = 2
call add(a,b,c)
write(*,*) a, b, c
contains
include 'add.f90'
end program including


The include file contains:

subroutine add(aa,bb,cc)
implicit none
integer :: aa,bb,cc
cc = aa+bb
end subroutine add


The error message:

[FTN95/Win32 Ver. 8.70.0 Copyright (c) Silverfrost Ltd 1993-2020]
NO ERRORS [<INCLUDING> FTN95 v8.70.0]
0003) integer :: a, b, c
*** Unexpected end of file


gfortran and Intel Fortran compile without problems. FTN95 compiles, if the source of the include file is put directly in the main program.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Apr 16, 2021 10:24 am    Post subject: Reply with quote

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


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

PostPosted: Tue Apr 20, 2021 12:37 pm    Post subject: Reply with quote

This 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