[Bug fortran/40539] Inversion of logical function compiled with ifort not correct.

alexander dot v dot kobotov at intel dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 24 16:02:00 GMT 2009



------- Comment #5 from alexander dot v dot kobotov at intel dot com  2009-06-24 16:02 -------
Thanks a lot, there is indeed different values for true:
For GFORTRAN: true = 1, false = 0
For Intel Fortran: true = -1, false = 0.
In IF expression both true values works, but NOT operand in GFORTRAN could
invert only GFORTRAN's values in 4.4.0.

The real problem with the issue is that code compiled with GFORTRAN could have
issues if linked with a vendor library. I'm experiencing ones with Intel®
MKL.

It would be nice to have an option to turn off that fast inversion, at least
for compatibility. Or at least to make -O0 case compatible.

Thanks,
Alexander.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40539



More information about the Gcc-bugs mailing list