Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Developer Studio 12.6 Fortran compiler: ieee_arithmetic_semantics: assertion `0' failed

User_IU5F9Aug 10 2020 — edited Aug 11 2020

On Linux (Ubuntu 16.04, kernel 4.4.0-186-generic), I used the Fortran compiler sunf95 from Oracle Developer Studio 12.6 to compile the following Fortran code:

program testieee 
use ieee_arithmetic, only : my_nan => ieee_is_nan
implicit none
print *, my_nan(0.0)
end program testieee

No compiler option was specified. The compilation failed with the following message:

f90comp: ../src/s_intr_mod.c :772 : ieee_arithmetic_semantics: assertion `0' failed. 
f90: Fatal error in $PATH_TO_ORACLE_DEVELOPER_STUDIO/OracleDeveloperStudio12.6-linux-x86-bin/developerstudio12.6/lib/compilers/bin/f90comp : Signal number = 6

However, the following code can be compiled successfully using the same compiler:

program testieee 
use ieee_arithmetic, only : ieee_is_nanĀ  ! Here is the only difference.
implicit none
print *, ieee_is_nan(0.0)
end program testieee

Both versions of the code can be compiled without any problem by gfortran, g95, ifort, nagfor, pgfortran, and absoft fortran compilers.

So why did Oracle Developer Studio 12.6 fail? What does the error message mean? Any comments/criticism on the code will be appreciated. Thank you very much.

Remark: The same question is asked on StackOverflow, but there is no answer yet. I hope someone can answer it here. Many thanks.

Comments
Post Details
Added on Aug 10 2020
0 comments
300 views