Skip to content

Fix error while unexpected EOF when scanning for end of comment #302

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 27, 2021

Conversation

dkm
Copy link
Member

@dkm dkm commented Mar 24, 2021

Emit an error when EOF is reached before end of C-style comment.

fix #300

@philberty
Copy link
Member

Before this is merged can you add a test case for this?

@dkm
Copy link
Member Author

dkm commented Mar 24, 2021

of course. I have one locally that uses my other changes, but I can still add one in the current tests !

@dkm dkm force-pushed the pr/eof_comment branch from aa35f03 to 169003d Compare March 24, 2021 14:25
@dkm
Copy link
Member Author

dkm commented Mar 24, 2021

Test added :)

Copy link
Member

@SimplyTheOther SimplyTheOther left a comment

Choose a reason for hiding this comment

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

PR looks great.

Emit an error when EOF is reached before end of C-style comment.
Add corresponding test for non regression.

fix Rust-GCC#300
@dkm dkm force-pushed the pr/eof_comment branch from 169003d to b97f145 Compare March 26, 2021 19:00
@philberty philberty merged commit e77c44e into Rust-GCC:master Mar 27, 2021
dkm added a commit to dkm/gccrs that referenced this pull request Mar 27, 2021
the PR Rust-GCC#302 and Rust-GCC#301 were conflicting because they are both modifying the tests.
Move the conflicting test and add correct dg-error directive.
dkm added a commit to dkm/gccrs that referenced this pull request Mar 27, 2021
the PR Rust-GCC#302 and Rust-GCC#301 were conflicting because they are both modifying the tests.
Move the conflicting test and add correct dg-error directive.

continue1.rs is less verbose after Rust-GCC#286, remove the dg-excess-error.
@dkm dkm deleted the pr/eof_comment branch March 27, 2021 20:18
dkm added a commit that referenced this pull request Mar 28, 2021
the PR #302 and #301 were conflicting because they are both modifying the tests.
Move the conflicting test and add correct dg-error directive.

continue1.rs is less verbose after #286, remove the dg-excess-error.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unterminated C-style comment makes gccrs to never returns
3 participants