From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C4433851C2A; Mon, 29 Jun 2020 17:33:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C4433851C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593451985; bh=JK2yDGkepFKvtJYc1WQjHDzXmiEq6xOInCkNJj73gqQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jONDF6pt/X0PmhiWUosnZk3fG+hqK3Xfarz1swZe4ZTmdo7AUbdKe2GfMkkayqjhl uzPVP7a/e6Z9u/cseGAZ9T85TFx2uC39rkiD2sLEsvzuL90+2U4DtakQqKMoSlPugz UFQzHtrjp7fCC4smUG2g3xktYb+TJxEiQSmNntk8= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBib290c3RyYXAvOTU5NzBdIGdjYy9nby9nb2Zyb250ZW5k?= =?UTF-8?B?L3R5cGVzLmNjOjE0NzQ6MzQ6IHdhcm5pbmc6IOKAmHRoaXPigJkgcG9pbnRl?= =?UTF-8?B?ciBudWxs?= Date: Mon, 29 Jun 2020 17:33:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org 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: Mon, 29 Jun 2020 17:33:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95970 --- Comment #3 from Martin Sebor --- On second thought, I think the warning might be correct. The function it's issued for is a static member of class Type (I at first thought it was virtual): Expression* Type::type_descriptor(Gogo* gogo, Type* type) { return type->do_type_descriptor(gogo, NULL); <<< -Wnonnull } and the call to it is below: Expression* Named_type::do_type_descriptor(Gogo* gogo, Named_type* name) { if (this->is_error_) return Expression::make_error(this->location_); if (name =3D=3D NULL && this->is_alias_) { if (this->seen_alias_) return Expression::make_error(this->location_); this->seen_alias_ =3D true; Expression* ret =3D this->type_->type_descriptor(gogo, NULL); <<< this->seen_alias_ =3D false; return ret; } I'll leave it to Ian to confirm one way or the other.=