]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
compiler: initialize local variable in lower_method_expression
authorIan Lance Taylor <iant@golang.org>
Tue, 26 Mar 2024 20:00:03 +0000 (13:00 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Mar 2024 18:36:01 +0000 (11:36 -0700)
Fixes PR go/114463

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/574476

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc

index 73cb095322cee628480b4fbd5c166035813eb0b1..de6e21fb3b53e6ad690fc27f7114517d4f1ac2cb 100644 (file)
@@ -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.
index 51ff02061295542c3c76b37bf0a19beda1be6975..8429e553eac93bfdb6dff349f1fb926813f40bf1 100644 (file)
@@ -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);