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.

2023.0.0: improved -check bounds

scivision
New Contributor I
908 Views

It appears oneAPI 2023.0.0 added a new `-check bounds` `-CB` feature: it now appears to detect the undefined case:

 

 

real, allocatable :: A(:)

allocate(A(2))

A(:) = [1,2,3]

 

previously, A would silently truncate to [1,2].  Now with bounds-checking, this generates a run-time error, which is more desireable.

0 Kudos
0 Replies
Reply