https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89830

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Zaak from comment #0)
> Created attachment 46026 [details]
> Broken repeat example
> 
> The non-elemental intrinsic string function REPEAT() is completely broken.
> With GFortran 8.3.0 installed via macOS Homebrew the following program fails
> to compile:
> 
> ```Fortran
> program repeat
>   implicit none
>   write(*,*) repeat('a',5)
> end program
> ```
> 
> It was compiled with:
> 
> ```
> gfortran -o repeat repeat_deterministic.f90
> ```
> 
> and produces the following error message:
> 
> ```
> repeat_deterministic.f90:3:19:
> 
>    write(*,*) repeat('a',5)
>                    1
> Error: Symbol at (1) is not appropriate for an expression
> ```

Yes, it should produce an error.
 program repeat
         ^^^^^^
The above symbol

>   implicit none
>   write(*,*) repeat('a',5)
               ^^^^^^
conflicts with this symbol

> end program

Reply via email to