From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3F56385C419; Fri, 14 Oct 2022 13:52:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3F56385C419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665755533; bh=ApCA5Py+0mQsPhFq+0GNO9miGB34chtO2V7LY5eYyx4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GKtTVwBh4HvAYfE9e5Ena0HyppJRT4y/JSWEtWwzLRZJ5S749LLE4PsOQFxat29Dw 4DSnUS7vNPGvIfIUT7SNYXzcXSnYF8R3rGTWnSk1IfRM9VDtUBSq8wpN3v5UOprytv u3hksPtV1shdU9pP5rZgHP+uQQLX3k3CPadAfos0= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107260] The prvalue with the value 0 that is not a integer literal shouldn't convert to std::nullptr_t Date: Fri, 14 Oct 2022 13:52:12 +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: mpolacek at gcc dot gnu.org 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: 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=3D107260 --- Comment #3 from Marek Polacek --- I wonder if we could wrap the INTEGER_CST in a NOP_EXPR/V_C_E to make it cl= ear it's not an integer literal.=