bounds checking failure

pgCC -V

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

code bug.cpp:

#include
#include

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

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

This has been fixed for the 11.1 release. TPR17580