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

-diag-enable sv3 related warnings (empty strings & module procedure calls)

wim_van_hoydonck
Beginner
256 Views
Apparently, with the command-line option

-diag-enable sv3

enabled, the following line of code (write an empty character to stdout) gives a warning:

write(*,*) ""

warning #12137: [SV] length of substring is non-positive

Is this not good? And if so, why?

The following (Explicitly writing a carriage return) does not generate a warning:

write(*,*) char(13)

and neither does (with space):

write(*,*) " "


I also get a lot of the following warnings (related to module procedure interfaces):

warning #12129: [SV] undeclared procedure "matrix_trace_i"
warning #12129: [SV] undeclared procedure "matrix_trace_r"

these point to the line where the generic subroutine (matrix_trace) is called.

matrix_trace is defined in a module as follows:

interface matrix_trace
module procedure matrix_trace_r, &
matrix_trace_i
end interface matrix_trace


Kind regards,

Wim
0 Kudos
1 Reply
Steven_L_Intel1
Employee
256 Views
The warnings are incorrect - please report them to Intel Premier Support.
0 Kudos
Reply