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

Christopher Albert <albert at tugraz dot at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #62992|0                           |1
        is obsolete|                            |

--- Comment #3 from Christopher Albert <albert at tugraz dot at> ---
Created attachment 63024
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63024&action=edit
Fix bogus warning with -cpp -fpreprocessed

Thanks for the feedback, Harald! Now refined for -E, and cleaned up. This is
now the proposed behavior:

Before patch (system gcc-15)
-cpp -fpreprocessed - Warning about quotes in comments
-cpp -fpreprocessed -E - Fatal error (tries to open filename from lineinfo)

After patch
-cpp -fpreprocessed - Compiles silently, no warning
-cpp -fpreprocessed -E - Clean error: "-E is not supported with -fpreprocessed"

Let's discuss further whether it is the responsibility of gfortran to fill in
for sloppy cmake code, or if we should just emit a better warning instead of
silently compiling.

Reply via email to