Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.

2023.0.0: improved -check bounds

scivision
New Contributor I
391 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