Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
26850 Discussions

Erroneous Warning for compiler_options

GaetanNASA
Beginner
220 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
184 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

1 Reply
Barbara_P_Intel
Moderator
185 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

Reply