From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3DF17385840B; Tue, 8 Nov 2022 17:45:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DF17385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667929549; bh=Ta5u9SXEGGghvOyCqO4ECT/8hdo9MZqmgM9w08W1x+k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=flrUvd3JS3+DL9XRZ99BNb75YpywdRKCAkCv3Q0haZsFfPKllmnXqs3ZCYhPIcr2C RcIFD+lF8cf7b2XFgJ+oVAH5UtD2xqoa0DBv+QyxxsZZjv8loPlDX8IfxHaBMASl09 UviIuBS7Seb2YFwAq4nDKPqhEVnXs5EqJSdo+AcU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107574] [10/11/12/13 Regression] ICE: tree check in cp_fold_convert with ptr to member field cast inside a class not completed and inherent Date: Tue, 08 Nov 2022 17:45:46 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail 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=3D107574 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |8.1.0 Known to fail| |7.5.0, 9.1.0 --- Comment #3 from Andrew Pinski --- In GCC 7 and before, GCC rejected the code: :5:1: error: non-constant condition for static assertion static_assert((int(B::*))&C::k, ""); }; ^~~~~~~~~~~~~ :5:15: error: a reinterpret_cast is not a constant expression static_assert((int(B::*))&C::k, ""); }; ^~~~~~~~~~~~~=