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

[BUG] Assert failed, file lex.h, line 320. #1130

Closed
MarekKnapek opened this issue Jun 21, 2024 · 3 comments
Closed

[BUG] Assert failed, file lex.h, line 320. #1130

MarekKnapek opened this issue Jun 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MarekKnapek
Copy link

Describe the bug
File lex.h.
Line 320.
Expression global_token_order == 0.

To Reproduce
Steps to reproduce the behavior:

  1. Download source code of cppfront.
  2. Compile cppfront.
  3. Run cppfront on test.cpp2 file.
  4. Assert triggers inside cppfront.

Additional context
Test.cpp2 file's content is only 24 bytes long and it is: nI:(Q):floatl:()h:r:~-=:.

@MarekKnapek MarekKnapek added the bug Something isn't working label Jun 21, 2024
@DyXel
Copy link
Contributor

DyXel commented Jun 21, 2024

nI:(Q):floatl:()h:r:~-=:

Man, I hate when that happens in my code 😅

Jokes aside, this made me think we should probably setup some fuzzing at some point.

@MarekKnapek
Copy link
Author

nI:(Q):floatl:()h:r:~-=:

Man, I hate when that happens in my code 😅

Jokes aside, this made me think we should probably setup some fuzzing at some point.

Yes, issue created: #1131.

@hsutter
Copy link
Owner

hsutter commented Jun 21, 2024

Thanks! I was just about to ask whether you were fuzzing. 👍 This is great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants