compiler: fix parsing of composite literals with omitted pointer types
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 13 Jul 2018 18:25:27 +0000 (18:25 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 13 Jul 2018 18:25:27 +0000 (18:25 +0000)
commit113950b77af34087b3496d5c994cbcc8005d910e
tree182d2e07753d75755ca366199ec36b2e87ca3b0c
parent6b34716ba421d05190d66ab4660a48c0446f76c7
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

    Reviewed-on: https://go-review.googlesource.com/123479

From-SVN: r262641
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc