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

Identifying Array Out of Bounds on * descriptor

dudley_j1
Beginner
409 Views
If I dimension an array with a star descriptor, e.g.

double precision:: Value(*)

is there any way of the compiler detecting if I am out of bounds, by tracking the bound as declared way back up the calling tree?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
409 Views
No. Additional information would need to be passed to catch such a thing. If you use assumed-shape or adjustable arrays, where the bound information is available, then you can detect these errors.
0 Kudos
Reply