aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2024-03-26 13:00:03 -0700
committerIan Lance Taylor <iant@golang.org>2024-03-27 11:36:01 -0700
commitf85d3362cdb4bab611508dd9a38d9015c02ff7ca (patch)
treeb79c6a5335f9e1c651b165948ab4bce47a90ce63 /gcc/go
parent839bc42772ba7af66af3bd16efed4a69511312ae (diff)
downloadgcc-f85d3362cdb4bab611508dd9a38d9015c02ff7ca.zip
gcc-f85d3362cdb4bab611508dd9a38d9015c02ff7ca.tar.gz
gcc-f85d3362cdb4bab611508dd9a38d9015c02ff7ca.tar.bz2
compiler: initialize local variable in lower_method_expression
Fixes PR go/114463 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/574476
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/MERGE2
-rw-r--r--gcc/go/gofrontend/expressions.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 73cb095..de6e21f 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-e15a14e410b8fc5d28012d5b313cb6c8476c7df9
+3f597287b6b858794dabdfe1bf83b386aad18102
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index 51ff020..8429e55 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -9059,7 +9059,7 @@ Selector_expression::lower_method_expression(Gogo* gogo)
Named_type* nt = type->named_type();
Struct_type* st = type->struct_type();
- bool is_ambiguous;
+ bool is_ambiguous = false;
Method* method = NULL;
if (nt != NULL)
method = nt->method_function(name, &is_ambiguous);