Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 Discussions

Cannot disable warnings promoted to error with new Intel Fortran versions

bbu
Beginner
288 Views

Hello,

 

with older Fortran compiler versions (at least up to ifort 2021.6.0 from oneAPI 2022.1) I was able to use the command line

   ifort simple.f -stand f18 -diag-error warn,remark -diag-disable 7373,10448

with simple.f a minimal fixed format source file

      program Hello
      print *,'Hello world'
      end program

sucessfully without any error message.

 

Newer ifort (and ifx) versions (ifort 2021.13.1 from oneAPI 2024.2.1, ifx 2024.2.1 and ifx 2025.1.1) now complain:

   Cannot disable Fortran error message 7373
   simple.f(1): error #7373: Fixed form source is an obsolescent feature in Fortran 2018.
   program Hello
   ^
   compilation aborted for simple.f (code 1)

But without "-diag-error warn,remark" it is working without any error message.

 

Actually I'm using much more -diag-disable with -stand f18, but this was the easiest example. I'd like to keep the other warnings promoted as errors, especially the many warnings introduced with -stand f18. Is this no longer possible with Intel Fortran or do I have to use different options?

0 Kudos
0 Replies
Reply