- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The IVF documentation for IMPLICIT states "When IMPLICIT NONE is used, all names in a program unit must be explicitly declared." and under "Program Units and Procedures" defines a "program unit" as one of four types:
Main program
External procedures
Modules
Block data program unit
And the compiler's treament is consistent. Itgenerates an error for the following:
[fortran]module impl implicit none contains subroutine sub a=1 end subroutine sub end module impl[/fortran]
$ ifort -c -V sample.f90
Intel Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20100806 Package ID: l_cprof_p_11.1.073
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
Intel Fortran 11.1-2755
sample.f90(5): error #6404: This name does not have a type, and must have an explicit type.
a=1
----^
compilation aborted for sample.f90 (code 1)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just to add about knowing what the Standard specifies,as per the IVF Language Reference section Overview it states "This document contains the complete description of the Intel Fortran programming language, which includes Fortran 95, Fortran 90, and many Fortran 2003 language features. It contains information on language syntax and semantics, on adherence to various Fortran standards, and on extensions to those standards." and further under Language Standard Conformance, it notes that Intel Fortran specific extensions are displayed in the Language Reference manual in "blue" shaded text.
So the Language Reference section does help one know what the various Fortran Standards specify and what is an Intel specific extension.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page