<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 - Module: private variables are exposed to the outside world"
href="https://bugs.llvm.org/show_bug.cgi?id=48648">48648</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Module: private variables are exposed to the outside world
</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>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>howisjw@hotmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>David.Truby@arm.com, jperier@nvidia.com, kirankumartp@gmail.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24337" name="attach_24337" title="module private bug">attachment 24337</a> <a href="attachment.cgi?id=24337&action=edit" title="module private bug">[details]</a></span>
module private bug
Hello,
I am testing the new Fortran front-end, which has been built from source using
LLVM 11.0.0 release. While testing I encountered a bug related the private
statement in a module. It looks like the variables, functions and subroutines
which are declared private in module are exposed to the outside world when this
module is used the use statement.
The attachment tarball is a relative simple example of the bug. In this error I
got the error 'is already declared in this scoping unit' error together with
the message 'It is use-associated with <variable> in module <module>'. I tried
to rename the <variable> in the use statement. In that case the front-end works
fine but gfortran complains that it can not find the <variable>, which I
understand since it is a private variable in used <module>.
Best regards,
Jan-Willem</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>