Skip to content

[Flang] English error in compilation error message #150864

@ohno-fj

Description

@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:

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(:)
                                      ^^^^^^^^
$

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions