Bug 114463 - go.test/test/fixedbugs/issue4458.go FAILs
Summary: go.test/test/fixedbugs/issue4458.go FAILs
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: go (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 11:24 UTC by Rainer Orth
Modified: 2024-03-27 18:36 UTC (History)
0 users

See Also:
Host:
Target: i?86-pc-solaris2.11, sparcv9-sun-solaris2.11
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2024-03-25 11:24:31 UTC
The go.test/test/fixedbugs/issue4458.go FAILs on Solaris in a weird way:

FAIL: issue4458.go   -O   (test for errors, line 19)
FAIL: issue4458.go   -O  (test for excess errors)

The issue happens both for a 32-bit-default x86 compiler, generating either 32 or
64-bit-code:

Excess errors:
issue4458.go:19: error: method 'foo' is ambiguous

A 64-bit-default x86 compiler is fine,though.

OTOH on sparc, a 32-bit default compiler is fine while a 64-bit-default
compiler shows the same issue.
Comment 1 GCC Commits 2024-03-27 18:36:27 UTC
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>:

https://gcc.gnu.org/g:f85d3362cdb4bab611508dd9a38d9015c02ff7ca

commit r14-9693-gf85d3362cdb4bab611508dd9a38d9015c02ff7ca
Author: Ian Lance Taylor <iant@golang.org>
Date:   Tue Mar 26 13:00:03 2024 -0700

    compiler: initialize local variable in lower_method_expression
    
    Fixes PR go/114463
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/574476
Comment 2 Ian Lance Taylor 2024-03-27 18:36:59 UTC
Thanks.  Fixed.