Issue 150864
Summary [Flang] English error in compilation error message
Labels flang
Assignees
Reporter ohno-fj
    ```
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(:)
                                      ^^^^^^^^
$
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to