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 

Access violation writing an array after using MATMUL

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



Joined: 23 Aug 2005
Posts: 46
Location: Berlin, Germany

PostPosted: Mon Oct 30, 2006 9:01 am    Post subject: Access violation writing an array after using MATMUL Reply with quote

Hi Paul,

Professor Lassmann reported another bug I have proofed with v4.91 of FTN95. He wrote:

The demonstration program Test_matmul leads to an unexpected error message “Access violation” caused by the statements

tmp = MatMul (b,u)
Write (*,*) 'tmp = ', tmp

The following statement gives the right answer

Write (*,*) 'tmp = ', tmp (1:2)


He supplied a demo program that shows the error:




Winapp

Program Test_matmul

Implicit None

Real , Dimension (1:2,1:2) :: u
Real , Dimension (1:2 ) :: b, tmp

u = +0.

u (1,1) = -1.
u (2,2) = -1.

b = +0.
b (1 ) = +1.

tmp = +2.

Write (*,*) 'u = ', u
Write (*,*) 'b = ', b
Write (*,*) 'tmp = ', tmp

tmp = MatMul (b,u)

! The following statement gives the right answer

! Write (*,*) 'tmp = ', tmp (1:2)

! The following statement gives 'Access Violation'

Write (*,*) 'tmp = ', tmp

End Program Test_matmul





Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Mon Nov 06, 2006 2:09 pm    Post subject: Access violation writing an array after using MATMUL Reply with quote

Joerg

I have logged this as a compiler bug that needs fixing.

Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Thu Nov 16, 2006 5:54 am    Post subject: Access violation writing an array after using MATMUL Reply with quote

Joerg

This bug has now been fixed for the next release.

Regards

Paul
Back to top
View user's profile Send private message AIM Address
KL
Guest





PostPosted: Mon Dec 18, 2006 10:20 am    Post subject: Problem “Access violation writing an array after using MATMU Reply with quote

I have rerun this problem with FTN95 v5.0 and the problem has been solved. Thank you very much!

Klaus Lassmann
Back to top
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