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

            Bug ID: 67623
           Summary: interaction between cpp and Fortran
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Joost.VandeVondele at mat dot ethz.ch
  Target Milestone: ---

The C(++) preprocessor that is invoked on .F90 files can change Fortran
strings, leading to unexpected results. While it is OK to remove things that
are truly C comments (e.g. from headers included), this should not happen in
Fortran strings? At least gfortran and ifort show different behavior.

> cat test.F90
#define FOO
WRITE(6,*) "&
&/* foobar */&
"
END
> gfortran test.F90 ; ./a.out

> ifort test.F90 ; ./a.out
 /* foobar */
>

Reply via email to