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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <[email protected]>:

https://gcc.gnu.org/g:15ffee4e129937c07190bc2ce059470bbd8068ae

commit r16-6285-g15ffee4e129937c07190bc2ce059470bbd8068ae
Author: Christopher Albert <[email protected]>
Date:   Thu Dec 4 14:08:10 2025 +0100

    fortran: Fix bogus warning with -cpp -fpreprocessed [PR92613]

    With -fpreprocessed, gfortran skips the C preprocessor, avoiding
    spurious diagnostics about characters in Fortran comments.

            PR fortran/92613

    gcc/fortran/ChangeLog:

            * cpp.cc (gfc_cpp_preprocess): Skip libcpp for -fpreprocessed.
            Error out for -fpreprocessed -E.
            * f95-lang.cc (gfc_init): Skip libcpp init for -fpreprocessed.
            * scanner.cc (gfc_new_file): Load source directly if preprocessed.
            * invoke.texi (Preprocessing Options): Document -fpreprocessed.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr92613.f90: New test.
            * gfortran.dg/pr92613_2.f90: New test for -E error.

    Signed-off-by: Christopher Albert <[email protected]>

Reply via email to