Skip to content

[BUG] 'using' with nothing following causes cppfront to assert #1378

@threeifbyair

Description

@threeifbyair

Describe the bug
If we simply write 'using' with nothing after it, cppfront asserts while it is trying to create the error message.

To Reproduce

main: () = {
  using
}

Additional context
The second bug from my fuzzing. I have a PR ready to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions