From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30214 invoked by alias); 9 Jun 2006 17:47:55 -0000 Received: (qmail 29481 invoked by uid 48); 9 Jun 2006 17:47:16 -0000 Date: Fri, 09 Jun 2006 18:03:00 -0000 Message-ID: <20060609174716.29480.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/27979] 4.2 Regression] conversion check confused by enum bitfields In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tbm at cyrius dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg01063.txt.bz2 List-Id: ------- Comment #2 from tbm at cyrius dot com 2006-06-09 17:47 ------- The following, related example, fails with gcc 4.2 20060508 but works with 20060530. It would be great if whoever works on this PR could check what change was responsible to get this working, and if it was just an accidental change, whether the following test case should be added to the test suite: enum EBorderStyle { BNATIVE, BNONE, BHIDDEN }; class BorderValue { public: EBorderStyle style : 8; }; class bar { BorderValue *border; EBorderStyle foo() { return border ? border->style : BHIDDEN; } }; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27979