Compiler option to warn about argument declarations of x(1) instead of x(*)

If n can be zero, it’s up to the developer of demo1 to protect references to x

    if (n>0) x(1) = 3.0          ! <- no more error
1 Like