cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

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

Open MarekKnapek opened this issue 1 year ago • 0 comments
trafficstars

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, https://github.com/hsutter/cppfront/issues/1131.

MarekKnapek avatar Aug 28 '24 04:08 MarekKnapek