> So I infer that gfortran returns a wrong value for these cases, is this > right?. You're right, and this is know as PR libfortan/25378 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25378). Note that this is a F2003 issue, as F95 allowed a processor-dependent value to be returned in these cases. FX