diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-18 11:34:39 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-18 12:40:05 +0100 |
commit | a64a5cf77c9685aa623ec69168e7f50324a102b9 (patch) | |
tree | ba9b636d9a2a21c4abaa2410d5efd20ac724fe87 /gcc/rust/parse/rust-parse.cc | |
parent | 1bb9a29688ab4ddfec7f8d36ca2cee63c5f258d2 (diff) | |
download | gcc-a64a5cf77c9685aa623ec69168e7f50324a102b9.zip gcc-a64a5cf77c9685aa623ec69168e7f50324a102b9.tar.gz gcc-a64a5cf77c9685aa623ec69168e7f50324a102b9.tar.bz2 |
macros: Do not propagate parse errors in match repetitions
Since parsing repetitions is very eager, the parser might accumulate
bogus errors by trying to match more repetitions than there are. We can
avoid this by clearing the parsing errors if parsing repetitions
returned a valid result. This should not be an issue for previous
matchers erroring out, as they would immediately return upon failure and
not reach inside other match functions.
Diffstat (limited to 'gcc/rust/parse/rust-parse.cc')
0 files changed, 0 insertions, 0 deletions