From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 96F633858D3C; Wed, 22 Feb 2023 17:03:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96F633858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677085424; bh=jdk4Ev4kYQAAuzqeHJUr7kPnY5mw6NEt6CiUsf/84GA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IQnUA/WNkF4lfvKDoW2Mq5enk3H9IpYPGUnYz2ws7DHMRA+YzPmaHj5nRL9FM301u mxyLGvyy4DCCBzOcuu8JO1yUUPu8+N3wrE28DuQmG1EoVDxiJHhXhJGR7sNacKvDUz vraEgSA8bKE/m9ip3iEqYZAt6kuawpfMtmHU3yp8= From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/69960] "initializer element is not constant" Date: Wed, 22 Feb 2023 17:03:43 +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: 5.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 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=3D69960 --- Comment #22 from joseph at codesourcery dot com --- I do however expect there may be cases in GCC 13 where constexpr=20 initializers of floating type are accepted that do not meet the definition= =20 of arithmetic constant expressions, since GCC is generally a lot more=20 careful about ensuring things are integer constant expressions when=20 required than it is about doing the same for arithmetic constant=20 expressions (before C2x there weren't any cases that allowed arithmetic=20 constant expressions without also allowing other kinds of constant=20 expressions permitted in initializers).=