From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED9903853560; Fri, 14 Oct 2022 09:59:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED9903853560 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665741583; bh=rIbSMe+aWjWsRGH54FIyAKq4TIZzVsnpTWavs5tIO4g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rDeGNqnlWRkaL7yEhEXHYCm6tYNC1K9Mg6Sh8cxrIpzol3rQGdVO6MqLTb2L1egP9 p/qZFgPptb6eqmb3Hh2h6xdnr3Y+NTYrccrsi0c4g5CH/0NVo+O8aa4AjmY5Tq9hMh uEtv6Td6XkwsE7GtvZ2lelq2+4LF4u0bSc+Xa76Y= From: "redi 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 09:59:43 +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: 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: bug_status cf_reconfirmed_on everconfirmed 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 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2022-10-14 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- (In reply to jim x from comment #0) > GCC accept this example Well, it does if you include a definition of std::nullptr_t typedef decltype(nullptr) nullptr_t; nullptr_t v =3D (int)0; Not a regression, this has been accepted since 4.6.4=