From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5FA4738582BE; Wed, 24 Aug 2022 06:22:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FA4738582BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661322140; bh=g3/vXsALbGVLcgcah+mbHevMStuRdimebiQaWb8BosI=; h=From:To:Subject:Date:From; b=xs84Er2m0tYkeJLe/r8LMKJ3TmgpmmbaWlU3x3vmYyOOPbrYJwyo3Rqp2KXBkcOPF Ow3QYJdq8KJMLbWj3Hw9PyMIqKp1l4tt+EJWsw3OK3bEOrLYwyDCouTSdUuyqilx2t qwpVhWQ2ma1tSd9xy+TDrPzXu/Pv0hzbnhow8vFs= From: "whh8b at obs dot cr" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106729] New: Missing diagnostic for violation of 9.2.8.5 Date: Wed, 24 Aug 2022 06:22:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: whh8b at obs dot cr 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 106729 Summary: Missing diagnostic for violation of 9.2.8.5 Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: whh8b at obs dot cr Target Milestone: --- According to 9.2.8.5 of the C++ standard, the following code should produce= a diagnostic: void testing() { return; } inline void testing(); int main() { return 0; } I can confirm that clang++ v 14.0.0 produces the proper diagnostic.=