From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F5C23858D38; Sat, 15 Oct 2022 07:00:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F5C23858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665817257; bh=wgNPUBMxda8Z6aLlf+vHzdTNS4nyQ5tqq9VYO6orwVU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BKnrpwy35ArR/zzNUvI/7Ylre46f49u4wCyEdHsSn/FgF8N47187DzmysqFN+vtoj RkDmtKzXDzyJwX5pkJBbFVCgu1CxPKbgek6If1g4axPlkItPtnhXg34Qit6z+4ZXaH uxve7al42cORdEq8S4sik1rvbGjru+BQyJpHcynY= From: "de34 at live dot cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107255] declaration and definition of a template function which vary in use of concept auto syntax are interpreted as ambiguous overloads Date: Sat, 15 Oct 2022 07:00:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: de34 at live dot cn X-Bugzilla-Status: UNCONFIRMED 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: cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107255 Jiang An changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |de34 at live dot cn --- Comment #1 from Jiang An --- I think two declarations are functionally-equivalent but not equivalent. So= the program is ill-formed, no diagnostic required. IIUC gcc is just doing the r= ight thing (at least something nice to have) here. The current normative wording in [dcl.fct] seems defective. See also follow= ing editorial issues. https://github.com/cplusplus/draft/issues/5495 https://github.com/cplusplus/draft/issues/4121=