From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5BE363858D38; Tue, 22 Aug 2023 18:35:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BE363858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692729318; bh=ePCClUVMxgzY9ViIosWNufdp9KoZizpS4RMdn9yFJ/I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LGzzUcgcur3AbyxFTPd08BoVsc2LSi/13lKWFoF+aV2OtDxq8RFQ6KPBN0b4kvHBi eXJYu8GZk6xes2nlMGKUfu5WgGuRVjXSDmr0RVwDfK/iQ0W8zKg0PyhKJ8tL3HPp9a YcYlr9GsYPJwrbtjgcnBnWbdxujCmreSeGsA7NlY= From: "pkeir at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/70248] constexpr initialization with unspecified equality expression accepted Date: Tue, 22 Aug 2023 18:35:17 +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: 6.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: pkeir at outlook dot com 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: cc 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=3D70248 Paul Keir changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pkeir at outlook dot com --- Comment #10 from Paul Keir --- Here is another example which GCC accepts, but Clang correctly rejects: constexpr bool test() { int arr[2]{}; void *p1 =3D &arr[0]; void *p2 =3D &arr[1]; return p1 < p2; } constexpr bool b =3D test();=