Re: [Patch, fortran] PR115315 - [PDT] valgrind error in gfc_simplify_expr

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On 3/19/26 3:26 AM, Paul Richard Thomas wrote:
> Hello All,
> 
> This looks to be a regression in that the error emitted by all current
> versions of gfortran:
> 
> rm: cannot remove '*.original': No such file or directory
> pr115315.f90:21:25:
> 
>     21 |     integer :: c2(iachar('ABCDEFGHIJ'(n1:n1)))
>        |                         1
> Error: Argument of IACHAR at (1) must be of length one
> pr115315.f90:21:25:
> 
>     21 |     integer :: c2(iachar('ABCDEFGHIJ'(n1:n1)))
>        |                         1
> Error: Argument of IACHAR at (1) must be of length one
> bash: ./a.out: No such file or directory
> 
> is invalid and not reported in the PR. Even if it is not a regression,
> it is a trivial fix for the above error. As far as I can see, the
> valgrind error has gone.
> 
> Regtests on FC43/x86_64 - OK for mainline?
> 
> The patch does not apply to 15-branch because of the changes to
> decl.cc but can be made to do if backporting is desired.
> 
> Paul

This looks OK Paul, thanks for fix.

Jerry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.