preprocessor token "#" doesn't work in gfortran as in gcc, intel-fortran or sun-fortran compiler
Tobias Burnus
burnus@net-b.de
Thu Jun 11 15:18:00 GMT 2009
Maik Beckmann wrote:
> Steve Kargl schrieb am Mittwoch 10 Juni 2009 um 23:23:
>
>> -cpp with gfortran invokes the C preprocessor. gfortran does not
>> have a separate preprocessor designed to work with Fortran. You've
>> already hinted at the problem for Maik.
>>
> Thanks you for this explanations. This makes using the regular gcc cpp not
> an options for me, since I know this kind of // concats are used a lot in our
> code.
>
There is the plan to teach libcpp about Fortran comments and string
handling, which is a prerequisite for running CPP in not in the
-traditional mode. However, it is unclear when this project will be
completed. Would you be interested to work on it? (gfortran always needs
helping hands; essentially all who work on gfortran do so in their spare
time and have a background in physics, chemistry, meteorolgy etc.)
See e.g. the following bug report, which also has a preliminary patch
(Fortran comments) but lacks the Fortran string support.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28662
Tobias
More information about the Fortran
mailing list