#165: Intel compiler complains wrongly about incompatible argument lists in Fortran -----------------------+---------------------------------------------------- Reporter: eschnett | Owner: Type: defect | Status: new Priority: minor | Milestone: Component: Cactus | Version: Resolution: | Keywords: -----------------------+----------------------------------------------------
Comment (by eschnett):
This is not an issue with modules; we figured out how to build with modules in Fortran. The Cactus make system pre-processes the Fortran files, looking for "include" and "use" statements, and then introduces the corresponding dependencies. Some people introduce these dependencies by hand, but this is in general not necessary.
The problem here is that the Intel compiler creates a pseudo-module for each source file, and checks these even without any use statements. For example:
file A.f90 contains subroutine A file B.f90 calls subroutine A
In this case, the Intel compiler acts as if file A defined a module, and as if file B used that module.