Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Using check bounds (-CB) and finding location

ctierney42
Beginner
397 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
397 Views
Add -traceback.
0 Kudos
Reply