PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

bounds checking failure

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



Joined: 18 Apr 2006
Posts: 1

PostPosted: Mon Jan 03, 2011 1:42 pm    Post subject: bounds checking failure Reply with quote

pgCC -V

pgCC 10.6-0 64-bit target on x86-64 Linux -tp nehalem-64

code bug.cpp:

#include <iostream>
#include <iomanip>

int main()
{
int a[2][100];
a[1][99] = 1;
std::cout << a[1][99] << endl;
return 0;
}

compilation: pgCC -Mbounds bug.cpp

result:
PGC++ F-Subscript out of range for array _42739_6_a (bug.cpp: 7)
subscript=99, upper bound=1, dimension=2

using version 9.0-4, the code runs without error.

Could someone check this with version 11? Our subscription just ran out
and we are deciding on whether to renew.

Thanks,
Brian

Dr. Brian C. Doyle
IT Manager, Dept. of Physics and Astronomy
University of Kentucky
(859) 257 1995
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jan 03, 2011 2:50 pm    Post subject: Reply with quote

Hi Brain,

I just checked and it seems that the problem still occurs in 11.0. I also checked our problem tracking database but was not able to find any previous reports of this issue. Hence, I submitted the issue to our engineers (TPR#17580).

Thanks for the report,
Mat
Back to top
View user's profile
Deborah Caruso



Joined: 20 Oct 2004
Posts: 43

PostPosted: Thu Jan 06, 2011 10:05 am    Post subject: Reply with quote

This has been fixed for the 11.1 release. TPR17580
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