[llvm-bugs] [Bug 52097] New: No dump output for programs with semantic errors

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 6 11:36:09 PDT 2021


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

            Bug ID: 52097
           Summary: No dump output for programs with semantic errors
           Product: flang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedbugs at nondot.org
          Reporter: psteinfeld at nvidia.com
                CC: andrzej.warzynski at gmail.com, David.Truby at arm.com,
                    jperier at nvidia.com, kirankumartp at gmail.com,
                    llvm-bugs at lists.llvm.org, sscalpone at nvidia.com

If I invoke the front end on a program with a semantic error and ask it to dump
the symbol table or the parse tree, no dump output appears.

Here's an example program with a semantic error:

program bad
  real,pointer :: x
  x = null()      ! Error - must be pointer assignment
end

If this program is in the file "bad.f90", and I invoke the compiler as follows:

flang-new -fc1 -fdebug-dump-all -I include/flang

I don't get any dump output.  Rather I only get the following messages:

error: Semantic errors in bad.f90
./bad.f90:3:3: error: A NULL() pointer is not allowed in a non-pointer
intrinsic assignment statement
    x = null()      ! Error - must be pointer assignment
    ^^^^^^^^^^
Also, no messages appear that indicate that dumping was skipped.

-- 
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/20211006/9497df4b/attachment.html>


More information about the llvm-bugs mailing list