From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 576F0385C416; Wed, 24 Aug 2022 11:54:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 576F0385C416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661342063; bh=tJU6KOPf86FoMU1YLGNqdwy0zM8ZKiHe5qb1bZS/NUc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U5kP1KQa/VrtmP9HF0GFZ3egDLIIdBuPD8dFDoRmXfksM82E9IIquqgjf4247+gtJ XIoiibb2ii9wNrADvAFdbChT22PSuwfb0a+b+tKj/pgGPDQdpoB1VEbfTcZT0OweuE IWbOGVcNXLxH9gN/pwhWI35qLJsA5TGyEytrDPZY= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66995] [DR317] First declaration as inline after definition of function Date: Wed, 24 Aug 2022 11:54:22 +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: unknown X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: cf_reconfirmed_on 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=3D66995 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2021-08-04 00:00:00 |2022-8-24 --- Comment #4 from Jonathan Wakely --- Clang rejects this: in.C:2:13: error: inline declaration of 'f' follows non-inline definition inline void f(); ^ in.C:1:6: note: previous definition is here void f() {} ^ 1 error generated. EDG accepts it by default, but rejects it with --strict: "in.C", line 2: error: function "f" cannot be declared inline after its definition at line 1 inline void f(); ^ 1 error detected in the compilation of "in.C".=