Skip to content

COR041 missing-intrinsic ​

warning enabled by default

An intrinsic module is used without the intrinsic keyword.

Why ​

use iso_fortran_env picks up a user module of the same name if one is on the module path. use, intrinsic :: iso_fortran_env always gets the compiler's module.

Reported ​

fortran
use iso_fortran_env, only: real64

Preferred ​

fortran
use, intrinsic :: iso_fortran_env, only: real64

Suppressing ​

For one occurrence, with the reason on the same line (or alone on the line before the statement):

fortran
! fobis: ignore[COR041] <why this occurrence is fine>

For the whole project, ignore = COR041 in the fobos [lint] section.

Equivalent ​

Fortitude rule C122 (see Lint Rules).