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: unassignedb...@nondot.org
          Reporter: psteinf...@nvidia.com
                CC: andrzej.warzyn...@gmail.com, david.tr...@arm.com,
                    jper...@nvidia.com, kirankuma...@gmail.com,
                    llvm-bugs@lists.llvm.org, sscalp...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to