Skip to content

Unterminated C-style comment makes gccrs to never returns #300

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

Closed
dkm opened this issue Mar 20, 2021 · 0 comments · Fixed by #302
Closed

Unterminated C-style comment makes gccrs to never returns #300

dkm opened this issue Mar 20, 2021 · 0 comments · Fixed by #302
Labels

Comments

@dkm
Copy link
Member

dkm commented Mar 20, 2021

/*

This is enough to make gccrs hangs on Attempting to parse file:

I guess this could be an easy first PR?

@philberty philberty added the bug label Mar 20, 2021
dkm added a commit to dkm/gccrs that referenced this issue Mar 23, 2021
Returns EOF token and let parser handle the error.

fix Rust-GCC#300
dkm added a commit to dkm/gccrs that referenced this issue Mar 24, 2021
Emit an error when EOF is reached before end of C-style comment.

fix Rust-GCC#300
dkm added a commit to dkm/gccrs that referenced this issue Mar 24, 2021
Emit an error when EOF is reached before end of C-style comment.

fix Rust-GCC#300
dkm added a commit to dkm/gccrs that referenced this issue Mar 24, 2021
Emit an error when EOF is reached before end of C-style comment.
Add corresponding test for non regression.

fix Rust-GCC#300
dkm added a commit to dkm/gccrs that referenced this issue Mar 26, 2021
Emit an error when EOF is reached before end of C-style comment.
Add corresponding test for non regression.

fix Rust-GCC#300
philberty pushed a commit that referenced this issue Mar 27, 2021
Emit an error when EOF is reached before end of C-style comment.
Add corresponding test for non regression.

fix #300
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants