public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tbm at cyrius dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/27979] 4.2 Regression] conversion check confused by enum bitfields
Date: Fri, 09 Jun 2006 18:03:00 -0000	[thread overview]
Message-ID: <20060609174716.29480.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27979-12387@http.gcc.gnu.org/bugzilla/>



------- 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


  parent reply	other threads:[~2006-06-09 17:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-09 16:52 [Bug c++/27979] New: " tbm at cyrius dot com
2006-06-09 17:09 ` [Bug c++/27979] 4.2 Regression] " pinskia at gcc dot gnu dot org
2006-06-09 18:03 ` tbm at cyrius dot com [this message]
2006-06-09 18:10 ` tbm at cyrius dot com
2006-06-16  0:24 ` [Bug c++/27979] [4.2 " mmitchel at gcc dot gnu dot org
2006-06-16 19:31 ` mmitchel at gcc dot gnu dot org
2006-06-16 23:13 ` mmitchel at gcc dot gnu dot org
2006-06-16 23:45 ` mmitchel at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060609174716.29480.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).