Correction to my previous comment on this subject. I had been using a hidden setting of -standard-semantics for recent versions of ifort. Now with 16.0.1 the combination of options -standard-semantics -Qxhost -Qopt-report produces internal compiler error while processing maxloc. If I remove opt-report it runs, but optimization of maxloc is disabled. Setting -assume:old_maxminloc fixes the ICE and restores optimization. I assume this makes the 0-length operand case non-conformant with f2003 but didn't test that. Setting -arch:SSE4.1 also avoids the ICE.
↧