PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

does C/C++ compiler support array bounds checking?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Fri Feb 17, 2012 10:28 am    Post subject: Reply with quote

Hi raca,

They determined that is a compiler issue and is being tracked as TPR#18453. No time line yet on when it will be fix but it should be sooner rather than later.

- Mat
Back to top
View user's profile
mark77



Joined: 14 Jul 2012
Posts: 1

PostPosted: Sat Jul 14, 2012 10:24 am    Post subject: Reply with quote

Hi,

Is this issue fixed yet? I'm thinking of purchasing the pgi compiler only because it has bounds checking, but don't want to do so if it's not yet wokring for c++ code...

Thanks


Mark
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jul 16, 2012 9:23 am    Post subject: Reply with quote

Hi Mark,

Thanks for checking. Yes, TPR #18453 was fixed in the 12.4 release. Though, it looks like the engineer who fixed the TPR mislabelled the ticket so it didn't show-up in our release notes as being fixed.

- Mat

Code:
% pgcpp -Mbounds bounds.cpp -V12.3
% a.out 3
sum is: 4.000000
% pgcpp -Mbounds bounds.cpp -V12.4
% a.out 3
Error: PGC-F-Subscript out of range for array _42543_10_a (bounds.cpp: 24)   
subscript=4, upper bound=3, dimension=1
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
Goto page Previous  1, 2
Page 2 of 2

 
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