https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115315
--- Comment #4 from anlauf at gcc dot gnu.org ---
(In reply to Paul Thomas from comment #3)
> (In reply to anlauf from comment #1)
> > Reduced testcase:
> >
> > subroutine p2
> > type t1(n1,n2)
> > integer,kind :: n1,n2
> > integer :: c2(iachar('ABCDEFGHIJ'(n1:n1)))
> > end type
> > end
> >
> > The current implementation is known to be incomplete.
>
> Hi Harald,
>
> When you posted this message, did this give?
>
> 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
>
>
> Cheers
>
> Paul
Yes, I saw these error messages, but also invalid reads with valgrind.
(Intel compiles the testcase w/o errors.)