| commit | 3f7e72eca3f9221e67c055841d42851aa6a66aff | [log] [tgz] |
|---|---|---|
| author | Ian Lance Taylor <iant@golang.org> | Wed Jul 11 17:48:30 2018 -0700 |
| committer | Ian Lance Taylor <iant@golang.org> | Fri Jul 13 18:24:42 2018 +0000 |
| tree | 4dc960df97f9cdc589bf1e9a5d2b605c89161c9b | |
| parent | 267686fd1dffbc03e610e9f17dadb4e72c75f18d [diff] |
compiler: fix parsing of composite literals with omitted pointer types
The frontend could parse omitted pointer typess at the end of the
type, but not in the middle, so code like []*[][]int{{{1}}} failed.
Test case is in https://golang.org/cl/123477.
Fixes golang/go#26340
Change-Id: I32f0c7154e6525871a5304e92215f4b3a64eac32
Reviewed-on: https://go-review.googlesource.com/123479
Reviewed-by: Than McIntosh <thanm@google.com>