From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1ED083858C2F; Mon, 30 Oct 2023 14:26:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1ED083858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698676008; bh=TnVbWZFvrU3tvxwALEkeVmmSmhcFzJ4J8x5zRcP8lN0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cdwJ/4B7yahsIcF1Zeiv0pT95z/EsIopnjuzbwFCyFWhDVBEQdYLNmxrXuNJT1liZ 8t/cp/kpPOgcHZo3qAmEIjZWnuImhS3AbsidjS9yQWKTj0knjKhLx/04tS8wI4qccy I6qs05oM20fzrVpsNjHDeBzHecx+qjd1IfjpKTys= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112296] __builtin_constant_p doesn't propagate through member functions Date: Mon, 30 Oct 2023 14:26:47 +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.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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=3D112296 --- Comment #1 from Richard Biener --- __builtin_constant_p is limited by inlining, maybe you want to use if constexpr for this or the standard library facility I can't remember right now.=