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

feat: error resilient errors #5354

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Conversation

parth121101
Copy link
Contributor

Towards: #5036

@parth121101
Copy link
Contributor Author

Will add more errors in this PR itself.
Till that if someone can review, it will be helpful

@parth121101 parth121101 added the error resiliency Issues or PR towards creating error resilient frontend label Nov 11, 2024
@certik
Copy link
Contributor

certik commented Nov 12, 2024

Looks good. Get CI to pass and let's merge it.

@certik certik marked this pull request as draft November 12, 2024 00:30
Copy link
Member

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update test references using:

rm -rf ./tests/reference/*
./run_tests.py -u

@parth121101
Copy link
Contributor Author

update test references using:

rm -rf ./tests/reference/*
./run_tests.py -u

aye aye, sir

@parth121101 parth121101 marked this pull request as ready for review November 13, 2024 05:28
@parth121101 parth121101 merged commit ce557d2 into lfortran:main Nov 13, 2024
27 checks passed
Comment on lines +60 to +78
! close_invalid_kwarg1
CLOSE(end=200)
print *, "Fifth error skipped"


! cmplx_01
a = cmplx(y = 2)
print *, a
print *, "Sixth error skipped"


! cmplx_02
print*, cmplx((real(1, kind=4), 0.00000000), kind=8)
print *, "Seventh error skipped"


! cmplx_03
print*, cmplx((1.00000000, real(0, kind=4)), kind=8)
print *, "Eighth error skipped"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's shorten these to just:

    CLOSE(end=200)
    a = cmplx(y = 2)
    print*, cmplx((real(1, kind=4), 0.00000000), kind=8)
    print*, cmplx((1.00000000, real(0, kind=4)), kind=8)

Seems a lot shorter and removes noise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will apply this changes here : #5374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error resiliency Issues or PR towards creating error resilient frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants