PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Bug report: Fortran 2003 pointer remaping

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mianmian10



Joined: 06 Nov 2013
Posts: 1

PostPosted: Wed Nov 06, 2013 4:30 pm    Post subject: Bug report: Fortran 2003 pointer remaping Reply with quote

I am testing the Fortran 2003 pointer features with the following code
Code:
program test_pointer
    implicit none
    double precision, dimension(3,-1:10,-1:10),target :: P
    double precision, dimension(:,:),pointer :: h,hu,hv
   
    P(1,:,:)= 100.0;
    P(2,:,:)= 200.0;
    P(3,:,:)= 300.0;
    h (-1:,-1:) => P(1,:,:)
    hu(-1:,-1:) => P(2,:,:)
    hv(-1:,-1:) => P(3,:,:)
   
    print *, h(1,1), hu(1,1), hv(1,1)
end program

I suppose the output will be
100 200 300.
but the actual output is
100 100 100

pgfortran version
Code:
pgfortran 13.10-0 64-bit target on x86-64 Linux -tp penryn
The Portland Group - PGI Compilers and Tools
Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.


System
Code:
Linux *********  2.6.32-358.11.1.el6.x86_64 #1 SMP Wed May 15 10:48:38 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6129
Location: The Portland Group Inc.

PostPosted: Wed Nov 06, 2013 5:11 pm    Post subject: Reply with quote

Hi mianmian10,

Thanks for the report. I added a problem report, TPR#19660, and sent it on to our compiler engineers for further investigation.

Best Regards,
Mat
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 438

PostPosted: Fri Jan 24, 2014 1:37 pm    Post subject: 19660 - UF: Fortran 2003 pointer remaping failing Reply with quote

Hello,

The problem logged as TPR 19660, has been fixed in the current 14.1 release.

thanks,
dave
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
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 © phpBB Group