preprocessor token "#" doesn't work in gfortran as in gcc, intel-fortran or sun-fortran compiler
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Thu Jun 11 01:22:00 GMT 2009
Maik Beckmann wrote:
> As a mainly gcc using c++ coder and working with people who are intel and sun
> fortran users I was just a little stunned by the unfamiliar preprocessor
> behavior and wondered if this was just an oversight. If you guys say it stays
> the way it is I fine with it.
For the sake of explanation, not adding much to the discussion: gfortran
strives for compatibility with g77 (the longtime 'standard' Fortran
compiler). g77 used traditional preprocessing. That's why gfortran
behaves the way it does. I'm surprised other compilers chose to act
incompatibly. Since noone complained so far (as for all I remember), my
guess is that either the differences simply are not what Fortran users
care about or people are happy with g77-compatible behavior.
Regards,
- Tobi
More information about the Fortran
mailing list