From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F77239DC4D9; Thu, 13 May 2021 02:19:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F77239DC4D9 From: "guojiufu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/100537] Bootstrap-O3 and bootstrap-debug fail on 32-bit ARM after gcc-12-657-ga076632e274a Date: Thu, 13 May 2021 02:19:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guojiufu at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2021 02:19:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100537 --- Comment #13 from Jiu Fu Guo --- (In reply to Ian Lance Taylor from comment #12) > A change to go-gcc.cc should not change any of the error messages emitted= by > the Go frontend. It should not change the way that issue4458.go is handl= ed. > Those errors messages are emitted long before any of the code in go-gcc.cc > is called. I'm not sure what is happening. It is interesting, I rerun for trunk (without the patch), the message is "error: type has no method 'foo'" With the patch, the message is "error: method 'foo' is ambiguous" At expressions.cc:14655 if (!is_ambiguous) go_error_at(location, "type has no method %<%s%>", Gogo::message_name(name).c_str()); else go_error_at(location, "method %<%s%> is ambiguous", Gogo::message_name(name).c_str()); is_ambiguous: if (nt !=3D NULL) method =3D nt->method_function(name, &is_ambiguous); else if (st !=3D NULL) method =3D st->method_function(name, &is_ambiguous);=