https://bugs.llvm.org/show_bug.cgi?id=50993

            Bug ID: 50993
           Summary: flang -E breaks fixed-format files
           Product: flang
           Version: 12.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

If the perprocessing-only step is run on a fixed-format Fortran file the
resulting output is no longer fixed-format. This can cause issues in build
systems that perform preprocessing and compilation separately and expect the
preprocessed file to still be valid fixed-format Fortran.

As an example, if you perform preprocessing like this:
flang -E file.f -o file.pp.f
flang file.pp.f
the resulting file will not compile as the compiler expects fixed-format
Fortran but that is no longer the case after preprocessing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to