mirror of
https://github.com/golang/go
synced 2024-11-21 21:54:40 -07:00
goyacc: fix indexing bug when yydebug >= 2
Fixes #2701. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5556070
This commit is contained in:
parent
0a851754a0
commit
a67c69cbae
@ -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--
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user