briandfoy / PerlPowerTools

Perl Power Tools
https://metacpan.org/pod/PerlPowerTools
Other
211 stars 53 forks source link

bc: yyparse() loop regression #619

Closed mknos closed 3 months ago

mknos commented 3 months ago
%echo '1++' > A.bc && perl bc -y A.bc   # before patch
yydebug: state 1, reading 0 (end-of-file)
yydebug: state 1, reducing by rule 2 (stmt_list_exec : stmt_list_exec stmt_exec)
yydebug: after reduction, shifting from state 0 to state 1
yydebug: state 1, error recovery shifting to state 2
"A.bc", line 1: syntax error
yydebug: error recovery discarding state 2
yydebug: state 1, error recovery shifting to state 2
yydebug: error recovery discarding state 2
yydebug: state 1, error recovery shifting to state 2
yydebug: error recovery discarding state 2
yydebug: state 1, error recovery shifting to state 2
yydebug: error recovery discarding state 2
LOOP