This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Fwd: intrinsic repeat() completely broken (regression)
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Damian Rouson <damian at sourceryinstitute dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, Izaak Zaak Beekman <ibeekman at paratools dot com>
- Date: Tue, 26 Mar 2019 09:59:34 -0700
- Subject: Re: Fwd: intrinsic repeat() completely broken (regression)
- References: <CAAbnBwYnGPTaRZ3PDbRHfOb1kmAcp9C2C0R+acC8z87oW69OCw@mail.gmail.com> <CACR8rvdvg+7ykf4WhRMFanoCHuAk0tRZ-Ea0YL2G-Qx9Hy8D0w@mail.gmail.com>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Tue, Mar 26, 2019 at 09:38:41AM -0700, Damian Rouson wrote:
>
> Hi All,
>
> I have filed a bug report at
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89830 which seems to be a
> serious regression.
>
> There are two main issues:
>
> 1. The non-elemental intrinsic string handling function, repeat(),
> seems to be completely broken and unusable in most cases. I included a
> very trivial reproducer in the bug report.
gfortran's response is appropriate for the code in the PR.
program repeat
implicit none
write(*,*) repeat('a',5)
end program
The program name 'repeat' conflicts with the intrinsic routine 'repeat'.
program foo
implicit none
write(*,*) repeat('a',5)
end program
The above works as expected.
--
Steve