diff options
author | Ian Lance Taylor <iant@golang.org> | 2022-06-28 17:03:28 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-06-29 15:18:11 -0700 |
commit | 3183acc8e0452fbc0ad429a909811ca0308c86c9 (patch) | |
tree | b4ad453620f19156baa1ae34900e95a936c10b42 /gcc/go/gofrontend/parse.h | |
parent | 329bef49da30158d30fed1106002bb71674776bd (diff) | |
download | gcc-3183acc8e0452fbc0ad429a909811ca0308c86c9.zip gcc-3183acc8e0452fbc0ad429a909811ca0308c86c9.tar.gz gcc-3183acc8e0452fbc0ad429a909811ca0308c86c9.tar.bz2 |
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
Diffstat (limited to 'gcc/go/gofrontend/parse.h')
-rw-r--r-- | gcc/go/gofrontend/parse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index 6e300ef..cda0bee 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -185,6 +185,7 @@ class Parse void list(void (Parse::*)(), bool); void const_decl(); void const_spec(int, Type**, Expression_list**); + void update_references(Expression**); void type_decl(); void type_spec(); void var_decl(); |