From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0607385C32C; Wed, 24 Aug 2022 11:52:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0607385C32C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661341972; bh=5zcZ46btCx2igSWB5+SGbwJo7zDsbHc3xpiCTLycYjw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OqZ7bmUtHqefWL0LoxWWTiLlR7mJc9n7A6lQ9kgilo7LF36B9C6RtvkNi3cPK2hVa j2zt+qau+pMgu/JqsGuNOrN9LdkxLhVp7fbnYjJKxaSusmzvd3H/qyJgEPb9viyj3Z KTyhIWANJyMt8S+1VHm8TU+nQNR/x7NqGvNsuBrw= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106729] Missing diagnostic for violation of 9.2.8.5 Date: Wed, 24 Aug 2022 11:52:52 +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.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: bug_status resolution 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=3D106729 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Jonathan Wakely --- (In reply to Will Hawkins from comment #0) > According to 9.2.8.5 of the C++ standard, The subclause numbers change with each revision of the standard, so although "the C++ standard" is currently unambigously C++20, it's more helpful to st= ate which revision you're referring to, or use the stable tags. In C++20 9.2.8/= 5 is [dcl.inline]/5, which says: "If a definition of a function or variable is reachable at the point of its first declaration as inline, the program is ill-formed." This rule first appeared in C++11, added by , and= we already have a bug for that: PR 66995 *** This bug has been marked as a duplicate of bug 66995 ***=