diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2015-03-18 13:29:22 -0700 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2015-04-04 00:10:16 +0000 |
| commit | 23810777867d0a7df1ef149ec6ed4135ce07fb01 (patch) | |
| tree | 50a8e14bd10270a523469e929a705f0dceabfb68 /src/bytes | |
| parent | 7b850ec6917acada87482bbdea76abb57aa5f9cd (diff) | |
| download | go-23810777867d0a7df1ef149ec6ed4135ce07fb01.tar.xz | |
cmd/yacc: fix default action
Previously, a production rule like
A: B C D
would cause yacc to check that A and B have the same declared types,
but then it would generate an implicit action of { $$ = $3 } (i.e.,
copy the value from D), even if A and D have different types.
Fixes #10192.
Change-Id: I51cfd7baa0011557141dca33b7af1d892cc6f49e
Reviewed-on: https://go-review.googlesource.com/7780
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/bytes')
0 files changed, 0 insertions, 0 deletions
