[Bug fortran/95146] gfortran -cpp – leading spaces before '#' preprocessing directive not handled

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 27 08:21:59 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95146

--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #5)
> Moving to the non-traditional C preprocessor will cause havoc with
> the // operator in Fortran.
> c = 'a' // 'b' would then be turned into c = 'a', probably not intended :-)

That's one of the reasons that PR 28662 is still pending; it requires a special
Fortran mode for libcpp. — See PR 28662 comment 4 to 10. – Still useful, but
not trivial.


More information about the Gcc-bugs mailing list