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

    <tr>
        <th>Summary</th>
        <td>
            [Flang] English error in compilation error message
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          ohno-fj
      </td>
    </tr>
</table>

<pre>
    ```
Version of flang : 22.0.0(e3af202fd212a66700170717856a8fa9aa7ed426)/AArch64
```

In the attached program, `the article a` written between `is` and `not` in the compilation error message seems unnecessary.

The following is an excerpt of the message.
```
error: pointer 'i04_pn01' is associated with the result of a reference to function 'merge' that is a not a pointer
                                                       ^
```


The following are the test program, Flang compilation result.

snfg_mktest_216_2.f90:
```fortran
program main
  intrinsic :: merge
  integer(kind = 4), pointer     :: i04_pn01(:)
  i04_pn01 => merge(i04_pn01,i04_pn01,.true.)
end program main
```

```
$ flang snfg_mktest_216_2.f90
error: Semantic errors in snfg_mktest_216_2.f90
./snfg_mktest_216_2.f90:4:3: error: pointer 'i04_pn01' is associated with the result of a reference to function 'merge' that is a not a pointer
    i04_pn01 => merge(i04_pn01,i04_pn01,.true.)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
./snfg_mktest_216_2.f90:3:37: Declaration of pointer 'i04_pn01'
    integer(kind = 4), pointer     :: i04_pn01(:)
                                      ^^^^^^^^
$
```

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsVk2L5DYQ_TXlixgjl78PPjgz3ZBzQq6DWi7b2rWlRpJ3sv8-SPbsNLPpJYTAQFgjsD5cr0rP9UoSzqlJE3VQ_gLlUyI2PxvbmVmbh_FTcjHD1w4qfjTe_0HWKaOZGdm4CD0xyHuGmPKUAzaUixE5jgNmKKqq5jyreZ3VTVmJZhStEDUNBVaALeC5762cqwJ4f-sBeP-rZn4mJrwXcqaBXa2ZrFgBHxlUPC5Zr-RCTEDF2YtV3pNmF_IvRDp8o1xYEHoIA218GKkdVZr1qhbhwy7IWmPZSs6JiZgjWh3btCYZZuzXdA_n95nYaJbFvCg9MeWY0Iz-lGSvPvAQQA-I9N1eIn5g6GqU9mQZYK148XzVPAOsI5ZzRirhaWAvys8RzZLblogtmKWRLGlJzBs2blrGwAHrlexEAcTPwkckpo1n4tVXCOWUQ8ND-9n5_3YYlKfvNfRd3gpLMbk8OX-rqHOU8a0q9vQ7kt_pcXpePwerZ8yqZ0zHlkPe33ocjfVWaOD9gctWocKQMaW9VdopGQpFUMKetscSTWQBm88qCDV_YkUsDI_f5BKew-5NNk2YwXbHOGaDNeSnAx2bt68fb7qptxuluy3pb3XlNdr3DN4OsTjq3d_zcSP132gV2iu5FxcXys49mxTwfI_fAvI-D3gfXEPCL_j3LMcfWJ4-uP2Y6cByXgeGn0guwu4iMOMdwl85-Q-y9588P9gU4PuzMxm6fGjzViTUZXWZV1WNWZ3MHaecJG8uDa-H6oIZjbyQjRhwKJp2yMtEdcix5DU2PCuqsk7bS1MWY5bVmawKIVsoOK1CLemyfFlTY6dEObdRl5W8qYpkERdaXLxFIEalAGK4UNguGDxctslBwRflvHuD8Mov8eoRixCUT-ykp0W5-TiZlb5_XCebXbrZ-6uLjJ4Bz5Py83ZJpVkBz8HJ8Xq4WvOJpAc8x6Ad4PmI-0uHfwUAAP__alpzEA">