Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Fortran 2008 does not allow this statement or directive: error stop

Laasner__Raul
Beginner
593 Views

For some reason ifort complains about error stop not being part of the 2008 standard.

[plain]

[raul@desk ~]$ cat main.f90
  error stop
end program
[raul@desk ~]$ ifort main.f90 # no problems here
[raul@desk ~]$ ifort -std08 main.f90
main.f90(1): warning #6477: Fortran 2008 does not allow this statement or directive.
  error stop
--^
[/plain]

A small bug or have I misunderstood something?

Thanks

0 Kudos
2 Replies
Steven_L_Intel1
Employee
593 Views

A compiler bug. Already escalated as issue DPD200235770. There are some other F08 features that are also improperly flagged, such as LOCK and UNLOCK and some new intrinscs.

0 Kudos
Steven_L_Intel1
Employee
593 Views

This has been fixed for a future (2014) release of the compiler. It probably won't be included in an update.

0 Kudos
Reply