Closed nichannah closed 4 years ago
Good catch and I agree, very strange bug. I only have ifort 18 with me right now and both test pass as expected. Maybe filing this on the Intel forums would be a good idea if this issue becomes a showstopper for you?
date2num
and num2date
use real64
from iso_fortran_env
for some literal constants, I'm wondering if its implementation varies between these versions of ifort.
I'm no longer able to reproduce this error with out latest compiler versions:
intel-compiler/2019.5.281 intel-compiler/2020.0.166
The patch below introduces one passing and one failing test. This problem occurred with intel 17 but not 15, 16 or 18. It did not happen with gfortran.
Intel 14 gives a compiler error
Intel 13 gives a segmentation fault: