Skip to content

[BUG] Digit separator doesn't parse #862

Closed
@JohelEGP

Description

@JohelEGP

Title: Digit separator doesn't parse.

Minimal reproducer (https://cpp2.godbolt.org/z/Pn4zd7MeM):

niam: () = { _ = 0'1; } // Not OK.
main: () = {
  _ = 0'1; // OK
}
Commands:
cppfront main.cpp2
clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -Werror=unused-value -Werror=unused-parameter -I . main.cpp

Expected result: Both to work.

Actual result and error:

main.cpp2...
main.cpp2(5,0): error: end of file reached with 1 missing } to match earlier { on line 1

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