compiler: check repeated const expressions in new scope
commit3183acc8e0452fbc0ad429a909811ca0308c86c9
authorIan Lance Taylor <iant@golang.org>
Wed, 29 Jun 2022 00:03:28 +0000 (28 17:03 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 29 Jun 2022 22:18:11 +0000 (29 15:18 -0700)
treeb4ad453620f19156baa1ae34900e95a936c10b42
parent329bef49da30158d30fed1106002bb71674776bd
compiler: check repeated const expressions in new scope

Test case is const8.go in https://go.dev/cl/414795.

Fixes golang/go#53585

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/414914
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/parse.cc
gcc/go/gofrontend/parse.h