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

Erroneous Warning for compiler_options

GaetanNASA
Beginner
682 Views

The following program, 

program main
use ISO_FORTRAN_ENV

character (len = :), allocatable :: res

res = compiler_options ()

print *, res

deallocate (res)
end program main

when compiled with 

gkenway@pfe26:~> ifort -stand=f08 t.F90

gives

t.F90(6): warning #7416: Fortran 2008 does not allow this intrinsic procedure. [COMPILER_OPTIONS]
res = compiler_options ()

The ifort version i'm using is. 

gkenway@pfe26:~> ifort --version
ifort (IFORT) 19.1.3.304 20200925
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.

The older versions didn't do this.

Thanks

Gaetan

 

 

0 Kudos
1 Solution
Barbara_P_Intel
Moderator
646 Views

You are right. That should not be a warning for F2008.  I filed a bug on your behalf, CMPLRIL0-33502. 

 

View solution in original post

0 Kudos
2 Replies
Barbara_P_Intel
Moderator
647 Views

You are right. That should not be a warning for F2008.  I filed a bug on your behalf, CMPLRIL0-33502. 

 

0 Kudos
Barbara_P_Intel
Moderator
435 Views

The warning message that you reported has been removed in ifort version 2021.6.0. That was recently released as part of oneAPI HPC Toolkit 2022.2.

Check it out. You can download it here

 

0 Kudos
Reply