[llvm-bugs] [Bug 50993] New: flang -E breaks fixed-format files

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 6 05:18:06 PDT 2021


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: unassignedbugs at nondot.org
          Reporter: David.Truby at arm.com
                CC: David.Truby at arm.com, jperier at nvidia.com,
                    kirankumartp at gmail.com, llvm-bugs at lists.llvm.org,
                    sscalpone at nvidia.com

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210706/bc303906/attachment.html>


More information about the llvm-bugs mailing list