Skip to content

[BUG] Assertion `id' failed. cpp2::using_statement_node::for_namespace #1264

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

Open
MarekKnapek opened this issue Aug 28, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@MarekKnapek
Copy link

Steps to reproduce:

  • Get latest cppfront source code.
  • Compile cppfront, g++ -std=c++20 cppfront.cpp.
  • Run cppfront on this test file:
align_:=using"g"_:

Expected result:

  • Compilation success, or nice error message printed.

Actual result:

  • a.out: parse.h:2142: bool cpp2::using_statement_node::for_namespace() const: Assertion `id' failed.
  • Aborted (core dumped)

Found by fuzzing, #1131.

@MarekKnapek MarekKnapek added the bug Something isn't working label Aug 28, 2024
@MarekKnapek
Copy link
Author

Still broken in 2025, example input abc:=using"xyz", output parse.h:2181: bool cpp2::using_statement_node::for_namespace() const: Assertion `id' failed..

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

1 participant