<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 - array construction and already declared in scoping unit error"
   href="https://bugs.llvm.org/show_bug.cgi?id=48647">48647</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>array construction and already declared in scoping unit error
          </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=24336" name="attach_24336" title="bug in scope error">attachment 24336</a> <a href="attachment.cgi?id=24336&action=edit" title="bug in scope error">[details]</a></span>
bug in scope error

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 'already declared in scoping
unit' error in an array construction usign the following command:

array = [ (i,i=1,2), (10*i,i=1,2) ]

As far as I know this is a valid array construction. At least gfortran does not
complain about it. The attached file is an example of the bug.

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>