From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 397203856247; Fri, 5 May 2023 17:37:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 397203856247 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683308249; bh=g/4Ggk87TDWycwblSZ3xd3VNwiMSnvs0SmHPat08fus=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IlYmz4eyZoM1XEiuv6H0hmidJSlXfJ9WtWzp2MjgKt2PHqpKudBj9I7bfq0XtNqrk D13vGCwJjDZeI4U9NDFpUZAizUlxwD+9WJe9Up+HoH2q1lPCmU0tX6XvgTxjThPIUA CNZe2G8BRkV+F/eDGKdkJpXM/ipTGX/p2gew2z1Q= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109750] Incorrect code generated for shifted bit field Date: Fri, 05 May 2023 17:37:28 +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: 9.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D109750 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski --- MSVC bug: In [conv.prom] p5 the standard says: "A prvalue for an integral bit-field (11.4.9) can be converted to a prvalue= of type int if int can represent all the values of the bit-field;"=