<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - No dump output for programs with semantic errors"
href="https://bugs.llvm.org/show_bug.cgi?id=52097">52097</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>No dump output for programs with semantic errors
</td>
</tr>
<tr>
<th>Product</th>
<td>flang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>psteinfeld@nvidia.com
</td>
</tr>
<tr>
<th>CC</th>
<td>andrzej.warzynski@gmail.com, David.Truby@arm.com, jperier@nvidia.com, kirankumartp@gmail.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>