Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 415

missing functions from iso_fortran_env

$
0
0

Hi,

I was trying to use the new functions defined in iso_fortran_env, compiler_options and compiler_version.

Unfortunately turns out that intel fortran compilers does not support them. Do I miss anything?

[20:00:42 drFaustroll@circassia:~/playground/intel-bugs]: ifort -o options_versions.X options_versions.F90 -stand f08    
options_versions.F90(2): error #6580: Name in only-list does not exist.   [COMPILER_VERSION]
 use iso_fortran_env, only : compiler_version, compiler_options
------------------------------^
options_versions.F90(2): error #6580: Name in only-list does not exist.   [COMPILER_OPTIONS]
 use iso_fortran_env, only : compiler_version, compiler_options
------------------------------------------------^
options_versions.F90(5): error #6404: This name does not have a type, and must have an explicit type.   [COMPILER_VERSION]
 write(*,*)"Compiler: ", compiler_version()
--------------------------^
options_versions.F90(6): error #6404: This name does not have a type, and must have an explicit type.   [COMPILER_OPTIONS]
 write(*,*)"Options: ", compiler_options()
-------------------------^
compilation aborted for options_versions.F90 (code 1)
[20:01:09 drFaustroll@circassia:~/playground/intel-bugs]: ifort --version  
ifort (IFORT) 17.0.0 20160517
Copyright (C) 1985-2016 Intel Corporation.  All rights reserved.

 

the code is trivial

   program version_options
      use iso_fortran_env, only : compiler_version, compiler_options
      implicit none

      write(*,*)"Compiler: ", compiler_version()
      write(*,*)"Options: ", compiler_options()
   end program version_options

 

 

 


Viewing all articles
Browse latest Browse all 415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>