<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/94006>94006</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Flang] Missing diagnostic on duplicate global identifiers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            flang:frontend
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          DanielCChen
      </td>
    </tr>
</table>

<pre>
    Consider the following test case:
```
module m
  bind(c, name='xxxYY') p1
 procedure(real) xxxyy
end
```

The binding label `xxxYY` is a global identifier. It is also used as an global identifier for an external procedure. 
It should be diagnosed. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUs2OozwQfJrm0hpkmh-HA4f5EkWaw3fbyxyN3YBXjh3ZZpa8_QoSaQ6zEsJqVburq1wqJTt75gHa_6C9FGrNS4jDRXnL7nxe2BdjMI_hHHyyhiPmhXEKzoU_1s-YOWXUKjHU7yAuIN6hE6_vKG_BrI7x9qwQR-sN0EkDndGrG0N9AZLbtn1-AkmgHu_Vq_ceg2azRgY6RVZuB7dtezyeOHvzT8bn_9fCB9e-pFMjO4ROPGk6gTahwtmFUTm0hn22k-VY4kc-IJcCrokNqoTK_2zEKcQd4C1z9Mp9r1rik_4jY1rC6gyOjMaq2YfEpsTCDLXp614VPFSyktVJyK4ulqExTafHru71SU5d02hd1b2SplW96OREhR1IUCPauqpOdU91KZtJSdmQlqIVY9VCI_imrCud-7qVIc6FTWnloW-E6IrDg3S8MtG4zkAEdAaiySk_Q_0-xeDz7inRnoM47GPexnVO0AhnU07fg7PN7kjM9bjcXvB_m9Ju9UtqthqDR7PendUq808LU7FGNyw539MeHboCXWebl3UsdbgBXXey1_F2j-E36wx0PSQloOtT1ddAfwMAAP__Kh7dmw">