Make fail_with_error() macro abort the parser on non-recoverable errors. (#1688)

Until now this macro was aborting the parsing with YYERROR, independently of the kind of error. YYERROR aborts the parsing in a recoverable way, allowing the parsing to continue with the next rule. However, some errors like ERROR_INSUFFICIENT_MEMORY may leave the compiler in an inconsistent state and we should not continue with the parsing.
This commit is contained in:
Victor M. Alvarez
2022-04-21 17:33:10 +02:00
committed by GitHub
parent e12b889c37
commit 7e00915f15
6 changed files with 442 additions and 416 deletions
+4
View File
@@ -26,6 +26,10 @@ jobs:
protobuf-compiler \
protobuf-c-compiler \
libprotobuf-c-dev
- name: Print versions
run: |
bison --version
gcc --version
- name: Prepare for building
run: |
./bootstrap.sh