-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Bug: read()
gives invalid output
#4015
Comments
Seems like program main
character(len=2) :: c
read *, c
print *, c
print*, len(c)
end if we enter "apple" as the string from console. It will output: apple
5 instead of the correct output: ap
2 Same issue happens for when, padding of spaces needs to be done. |
@gxyd thanks for the finding! This should be easy to fix I think. 👍 |
@gxyd are you working on this? I have a fix ready for this. |
I was going to submit a fix just now, but I'm happy to work on this together so that either of our solution can be merged. So, submit a PR for it, and I'll review that. |
This bug was caught when working on #4011.
When ready with a fix, please also verify the integration test
intrinsics_60.f90
.The text was updated successfully, but these errors were encountered: