- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hello,
the standard conformance diagnostics can sometimes be confusing. Example:
[fortran]
subroutine foo (i, k, m)
integer :: k
integer(1) :: i, m(3)
k = min (k, i) ! Useful warning
k = min (k, maxval (m)) ! Confusing warning
end subroutine foo
[/fortran]
% ifort ifort-confusing.f90 -stand -c
ifort-confusing.f90(4): warning #7374: F2003 standard requires all arguments be of the same type and same kind type parameter.
k = min (k, i) ! Useful warning
--------------^
ifort-confusing.f90(5): warning #7374: F2003 standard requires all arguments be of the same type and same kind type parameter. [MAXVAL]
k = min (k, maxval (m)) ! Confusing warning
--------------^
(a) One might mention the name of the intrinsic affected (here: MIN);
(b) MAXVAL is not the problem, it just happens to be used in the code... :-)
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hello Harald,
I have filed a feature request to improve the diagnostic mesage for this case. The issue number is DPD200243638
Annalee
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite