Open snadrus opened 8 years ago
There are hard-coded limits in yacc that remain from when it was a C program. This should be fixed, but not for 1.7 (and see also #11229). For 1.7 I'll send a CL for an error rather than a panic.
CL https://golang.org/cl/24321 mentions this issue.
1.5 & 1.7rc2 on amd64 mac
go get github.com/snadrus/sqlin cd $GOPATH/github.com/snadrus/sqlin/src/parse go tool yacc -o parser.go -p parse parser.y
goroutine 1 [running]: panic(0x1124a0, 0xc42000e150) /usr/local/go/src/runtime/panic.go:500 +0x1a1 main.aryfil(0xc4200a6000, 0x7d0, 0x7d0, 0x883, 0x0) /usr/local/go/src/cmd/yacc/yacc.go:1522 +0x41 main.stagen() /usr/local/go/src/cmd/yacc/yacc.go:1781 +0x3f3 main.main() /usr/local/go/src/cmd/yacc/yacc.go:359 +0x5d