aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-04-09 17:42:37 -0700
committerIan Lance Taylor <iant@golang.org>2020-04-09 18:19:11 -0700
commitd09f80ae014613edb0197b36d94242f83da75696 (patch)
tree944e48f5ccdc38f45b244820bae48df0006b86c2 /gcc/cp/method.c
parentfef3d8b4a072757a0a4970b3ce566c354de150d3 (diff)
downloadgcc-d09f80ae014613edb0197b36d94242f83da75696.zip
gcc-d09f80ae014613edb0197b36d94242f83da75696.tar.gz
gcc-d09f80ae014613edb0197b36d94242f83da75696.tar.bz2
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
Diffstat (limited to 'gcc/cp/method.c')
0 files changed, 0 insertions, 0 deletions