[Bug fortran/41102] openMP include file causes errors when compiling with standards checking
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 18 16:09:00 GMT 2009
------- Comment #4 from burnus at gcc dot gnu dot org 2009-08-18 16:08 -------
(In reply to comment #3)
> For C and C++, most diagnostics are disabled by default for code in system
> headers. Shouldn't Fortran do something equivalent?
Good question. The problem is that with
include "somebig_chunk_of_code.f90"
one can include other code, which does not necessarily contain just PARAMETERs
(constants) and COMMONs but actual code. For instance octopus (tddft.org) does
this: It has a MODULE and includes one or two other files in it, which contain
subroutines/functions belonging to the MODULE but are for maintenance reasons
in a separate file. (Fortran 2008's submodules would be a better replacement.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41102
More information about the Gcc-bugs
mailing list