Commit a67c69cb authored by Rob Pike's avatar Rob Pike

goyacc: fix indexing bug when yydebug >= 2

Fixes #2701.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5556070
parent 0a851754
......@@ -3271,10 +3271,9 @@ $$default:
}
}
/* the current p has no shift onn "error", pop stack */
/* the current p has no shift on "error", pop stack */
if $$Debug >= 2 {
fmt.Printf("error recovery pops state %d, uncovers %d\n",
$$S[$$p].yys, $$S[$$p-1].yys)
fmt.Printf("error recovery pops state %d\n", $$S[$$p].yys)
}
$$p--
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment