On 5/4/2022 1:14 PM, Martin Liška wrote:
Right now, when a \$x escape sequence occures, the
next character after $x is skipped, which is bogus.
The code has very low coverage right now.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Thanks,
Martin
gcc/ChangeLog:
* gengtype-state.cc (read_a_state_token): Do not skip extra
character after escaped sequence.
Any way you can add a test for this? I'm OK with the patch as-is, but
with a test is obviously better.
jeff