From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 967C33858C41; Wed, 6 Sep 2023 04:05:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 967C33858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693973114; bh=lp/NR/DeU+dekNLZ11J1JQRxGIhDbySsbNRR9PPPAX8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oN9BDCcIIm5wJydnMOKQw4iQ8AWc8lQv2nX5zabbsvYz5g/Sx0z+6HAwYrN0RMA4O emmlRCK+XwWMSJNomNCWnrLzGSDu6EBnKaawuoz41DgjXul3zw2xkq7Ln/lue32JfW DmEDfTKIxPOCvb5/ZV4iphkGr0+KCG4+ecow4AoY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111301] misleading messages about missing "inline" Date: Wed, 06 Sep 2023 04:05:14 +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: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 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=3D111301 --- Comment #1 from Andrew Pinski --- Note the float case is actually supposed to be rejected without a const for= the same reason as the int ... GCC had an extension which allowed `const static float` being initialized `in-class initialization` which was removed (well rather allowed only with -fpermissive ) in GCC 4.7. Looks like the change which removed the extension changed how non-const static initialized for non-const errors out ...=