]> gcc.gnu.org Git - gcc.git/commit
compiler: look up composite literal keys in the global namespace
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Apr 2020 00:42:37 +0000 (17:42 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Apr 2020 01:19:11 +0000 (18:19 -0700)
commitd09f80ae014613edb0197b36d94242f83da75696
tree944e48f5ccdc38f45b244820bae48df0006b86c2
parentfef3d8b4a072757a0a4970b3ce566c354de150d3
compiler: look up composite literal keys in the global namespace

A composite literal key may not have a global definition, so
Gogo::define_global_names may not see it.  In order to correctly
handle the case in which a predeclared identifier is used as a
composite literal key, do an explicit check of the global namespace.

Test case is https://golang.org/cl/227783.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/227784
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
This page took 0.0541199999999999 seconds and 5 git commands to generate.