From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C96B3858401; Mon, 3 Oct 2022 14:54:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C96B3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664808844; bh=CpLFpzfx8nBLKiFPVmsoGFGi1/mUJO+VgH4ks8HrceM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P9xU6rX8jf88XPPatQbDFVUH36dfAAhDaVFjoBfZAQSWIuH133HxPyxH0mIJ3VdNk G1GB5FLonAAUVb/YYT7IHAeDsAbtcYQ6dKknNJ79WyavdYN0v5P4DXTntQA9U7oWjv z9PdZggJcNzZ/P1qLpmr4+lAErvZyNAzAL862TKs= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107104] semantics of __builtin_constant_p within static_assert and return value Date: Mon, 03 Oct 2022 14:54:04 +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: unknown X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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=3D107104 --- Comment #2 from Jonathan Wakely --- (In reply to Hannes Hauswedell from comment #1) > It seems that __builtin_constant_p does not indicate whether something *c= an > be* a constant but whether *it is* a constant. Correct.=