Topic: ieee_exceptions

I downloaded Fortran code which includes:

USE, INTRINSIC :: ieee_exceptions

I can compile it with intel fortran but not with simply Fortran. Any help?

2 (edited by JohnWasilewski 2014-03-06 17:20:55)

Re: ieee_exceptions

Some possible approaches to try:

(1)
Look up in the Intel Fortran documentation what exactly the "ieee_exceptions" module does.

(2)
Comment-out the line of code, USE, INTRINSIC :: ieee_exceptions, and wait to see what errors you get (and how many there are) telling you about (eg) variables with undeclared data types, subroutines and subprogram functions not found, then make guesses about what to put into your code to overcome this.

(3)
Provide an empty module of your own called  ieee_exceptions, and edit out the option, 'INTRINSIC' from the USE line, then look at teh error messages to work out what that module needs in it.

Re: ieee_exceptions

The ieee_exceptions module is part of the Fortran 2003 standard, and Simply Fortran's compiler does not yet support it.  Work is slowly progressing on it.  You can read more about it at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58020.

Jeff Armstrong
Approximatrix, LLC

Re: ieee_exceptions

Based on conversations over the course of today, I've added a new package to the Package Manager:

http://packages.simplyfortran.com/package/60.html

The above package adds support for Fortran 2008 IEEE modules to Simply Fortran in a slightly non-standard manner.

Jeff Armstrong
Approximatrix, LLC