Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

get_environment_variable bug

$
0
0

I believe that the get_environment_variable subroutine has a bug

bash-4.1$ uname -a
Linux mars 2.6.32-696.18.7.el6.x86_64 #1 SMP Thu Jan 4 17:31:22 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
bash-4.1$ /opt/intel/bin/ifort -v
ifort version 16.0.0
bash-4.1$ cat test.f90
program test
 integer :: v

 call get_environment_variable ("TG_NO_HE5_OUTPUT", status=v)
 write (*,*) 'status=', v
end program
bash-4.1$ /opt/intel/bin/ifort -w ./test.f90
bash-4.1$ TG_NO_HE5_OUTPUT= ./a.out
status= 1
bash-4.1$ TG_NO_HE5_OUTPUT=foo ./a.out
status= 0

The documentation for get_environment_variable suggests that status=0 should be returned for both cases.


Viewing all articles
Browse latest Browse all 2746

Trending Articles



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