Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29590 Discussions

Using check bounds (-CB) and finding location

ctierney42
Beginner
1,150 Views
I am using Intel Fortran 8.0, I have found some problems in my code using -CB indicating that my index is out of the array bounds.
What is the easiest way to find where this happens? It tells me what array, which array element, the value and the min or max value for that element, but it doesn't tell me where the access is.
It appears that the program is dumping a stack trace afterwards, but all information is printed as 'Unknown'. I compiled with -g and -inline_debug_info, but I still get 'Unknown' in the trace.

Thanks,
Craig
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,150 Views
Add -traceback.
0 Kudos
Reply