Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stdlib: Fix Repeat() implementation #3637

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Conversation

Shaikh-Ubaid
Copy link
Member

@Shaikh-Ubaid Shaikh-Ubaid commented Mar 12, 2024

Bug:

% cat examples/expr5.f90     
program expr2
    implicit none

    character(len=2) :: x1
    character(len=4) :: x
    x1 = "wh"
    x = "what"

    print *, repeat(x1, 3)
    print *, "|"//repeat(x, 3)//"|"

end program
% gfortran examples/expr5.f90
% ./a.out 
 whwhwh
 |whatwhatwhat|
% lfortran_in_main examples/expr5.f90 
www   
|www         |

@Shaikh-Ubaid Shaikh-Ubaid mentioned this pull request Mar 12, 2024
33 tasks
@Shaikh-Ubaid Shaikh-Ubaid changed the title Stdlib: Fix Repeat() implementation Stdlib: Fix Repeat() implementation Mar 12, 2024
@Shaikh-Ubaid
Copy link
Member Author

This needs to be rebased on top of #3636.

@certik certik marked this pull request as ready for review March 12, 2024 16:23
@certik certik enabled auto-merge March 12, 2024 16:24
@certik certik merged commit 2de42a0 into lfortran:main Mar 12, 2024
21 checks passed
@Shaikh-Ubaid Shaikh-Ubaid deleted the repeat branch March 12, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants