Closed JohelEGP closed 10 months ago
This causes the same error:
if 1 { _ = 0'1; }
Seems to be caused by this line: https://github.com/hsutter/cppfront/blob/c1d3e0edc8b2e2a2c035f68b6c0012c5b7049a07/source/io.h#L784
Yup, that was the offending line. Thanks!
Title: Digit separator doesn't parse.
Minimal reproducer (https://cpp2.godbolt.org/z/Pn4zd7MeM):
Commands:
```bash 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: