This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37032] including "file.F90" - no CPP processing
- From: "godom at twinbee dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2008 21:30:36 -0000
- Subject: [Bug fortran/37032] including "file.F90" - no CPP processing
- References: <bug-37032-16565@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from godom at twinbee dot com 2008-08-05 21:30 -------
(In reply to comment #3)
> (In reply to comment #1)
> > Cf. multiple topic PR 35707.
> >
> > The problem is that
> > include 'file2.F95'
> > is not processed through CPP. I'm not sure whether it should and when it should
> > (file extension .F/F90/F95/F03/F08/FPP/FOR/fpp, always, or never).
> >
>
> The standard simply says the text in file2.F95 is included
> at the location of the include line. It does not and suppose
> the standard will never discuss whether file2.F95 should be
> pre-processed before inclusion.
>
> This looks like pilot error in that Fortran's INCLUDE does not
> mean the same thing as C's #include.
>
Does the Fortran standard mention preprocessing at all? That works in g95, but
we are beginning to move away from that. Is a copy of the standard freely
available? I would like for this to work with as many different compilers and
systems as possible.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37032