Errors using certain Fortran compilers in CRAN checks

Catching such kinds of dimension errors at runtime is possible. You need to use the flags:

In the particular case of ifx v2024.0 use -check all,nouninit to bypass a compiler bug.