EXC_ARITHMETIC when writing a floating point variable

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Oct 31 21:50:00 GMT 2010


On Sun, Oct 31, 2010 at 04:55:50PM +0100, Richard Daal wrote:
> 
> I try to write a double precision variable "Test = 3.456" with
> "write(*, *) Test" to the terminal.
> That produces a floating point exception. With gdb, I get the
> following error message:
> "Program received signal EXC_ARITHMETIC, Arithmetic exception.
> 0x000000001001c8132 in __dtoa ()"

Well, what does EXC_ARITHMETIC mean?  This is OS specific! 

> -ffpe-trap=invalid,zero,overflow,underflow,precision,denormal

Looks like you got what you wanted.

-- 
Steve



More information about the Fortran mailing list