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

    <tr>
        <th>Summary</th>
        <td>
            [flang] Compilation error (associate)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          k-arrows
      </td>
    </tr>
</table>

<pre>
    Test code:
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gfortran.dg/associate_42.f90

Result (gfortran vs flang-new):
```console
$ gfortran associate_42.f90
$ ./a.out
$

$ flang-new associate_42.f90
error: Semantic errors in associate_42.f90
./associate_42.f90:25:7: error: The left-hand side of a pointer assignment is not definable
        point => tgt2
 ^^^^^^^^^^^^^
./associate_42.f90:25:7: because: 'point' is not a pointer
        point => tgt2
 ^^^^^^^^^^^^^
./associate_42.f90:20:16: Declaration of 'point'
 associate (point => obj%p)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8k8FunDwQx5_GXKxFMDYQDhz2-zY8QJt7ZZuBdWrwyh4S9e0rs7skkZoqpyLLyINn_j8Pf6sY7bQgdqz6j1WnTK109qH7eVAh-NeYaT_86p4wEjd-QCaOrDix4ngmusS0gp5BP1k6rzo3fk4LYw6zDcGH64JBr53XDPpZRcK3KGGkuFrCFBl9oKCWfJgY9CpGb6wi_CEhH9viqnmdv2FcHXEGD_cc_hL56NQyHRZ8ZdDukKwursP4JXqHtyhIvqd-ogSS54kj9yvtofcUaceu-UkV3Hogjvw7zmoha_gWidx-ppv_6eziCBUTxyZV2ks-nZE7HOlwVsvAox2Q-5ErfvF2IQz8-ltnXIjbyBdPfMDRLkrfu8Bvz5bAmTgx8chpIrh9ZtXjl8bXuDUatcZkH86g2TQZNHe0HfsfoqWprBPQCY1TQZH1S-rhO76b3p6eTPcByutnBtUlee6j4bKhE0MrWpVhV9aNrKAsZJOdO3gAZURVmlIYAa1QDepay7oyUmmo6sx2UIAoSpBFIWXR5AqbdtRjKx7U0EhZMlngrKzLnXuZcx-mzMa4YlcXIJvMKY0u3i9z6NKmg16nyGThbKT4lkaW3HbtNx-z6sT_9_PFumsnNqelA--nZ9Bma3DdX65-qn17HS7BP6MhBv3GFxn0G-LvAAAA__8FjE_t">