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 to_cpp1.h, line 6722. #1123

Closed
MarekKnapek opened this issue Jun 18, 2024 · 4 comments
Closed

[BUG] Assert failed, file to_cpp1.h, line 6722. #1123

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

Comments

@MarekKnapek
Copy link

Describe the bug
File to_cpp1.h.
Line 6722.
Expression assert(n.initializer);.

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 3 bytes long and it is: r:;.

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

Confirmed on cpp2.godbolt.org

@MaxSagebaum
Copy link
Contributor

Confirmed on cpp2.godbolt.org

Why not post the short link?

@sookach
Copy link
Contributor

sookach commented Jun 19, 2024

Confirmed on cpp2.godbolt.org

Why not post the short link?

link

@gregmarr
Copy link
Contributor

Why not post the short link?

It's literally three characters in the source, seemed like a waste to have it create and store the short link.

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

4 participants