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 

Integers of same kind flagged as different kinds

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

PostPosted: Sat Oct 15, 2016 12:58 am    Post subject: Integers of same kind flagged as different kinds Reply with quote

For this test program (abstracted from a much larger program):
Code:
subroutine tst(pcg)
type pcgtype
   sequence
   integer, pointer :: iptr
   real, pointer    :: fptr
end type pcgtype

type(pcgtype), intent(in) :: pcg

select case(pcg%iptr)
   case(0)
      write(*,*)'case 0'
   case(3)
      write(*,*)pcg%fptr
end select
return
end subroutine

FTN95 8.05 says:
Quote:
[FTN95/Win32 Ver. 8.05.0 Copyright (c) Silverfrost Ltd 1993-2016]
0011) case(0)
*** CASE value type INTEGER(KIND=3) on line 11 is different from SELECT CASE expression INTEGER(KIND=3) on
line 10
0012) write(*,*)'case 0'
*** CASE value type INTEGER(KIND=3) on line 12 is different from SELECT CASE expression INTEGER(KIND=3) on
line 10
2 ERRORS [<TST> FTN95/Win32 v8.05.0]
0016) return
*** Compilation abandoned

The second error message also displays an incorrect line number (12 instead of 13).
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Oct 15, 2016 8:56 am    Post subject: Reply with quote

Thank you for the feedback. I have logged this as needing fixing.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Jan 25, 2017 3:10 pm    Post subject: Reply with quote

This bug has 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