Re: preprocessor token "#" doesn't work in gfortran as in gcc, intel-fortran or sun-fortran compiler

Tobias Schlüter
2009-06-11T01:22:18+00:00

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

Loading


$ This page is proudly powered by www.pubbs.net, you can see more at gcc archive | Partners: ListWare Global Manufacturers