public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/59338] New: error: position plus size exceeds size of referenced object in BIT_FIELD_REF
@ 2013-11-29  9:52 jan.smets@alcatel-lucent.com
  2013-11-29 10:11 ` [Bug middle-end/59338] [4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2013-11-29  9:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59338

            Bug ID: 59338
           Summary: error: position plus size exceeds size of referenced
                    object in BIT_FIELD_REF
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.smets@alcatel-lucent.com

minimal.i: In function 'test':
minimal.i:20:6: error: position plus size exceeds size of referenced object in
BIT_FIELD_REF
 void test(void)
      ^
BIT_FIELD_REF <*qResp, 8, 32>
minimal.i:23:28: note: in statement
     if (qResp->u.l[0].More == 0)
                            ^
D.1802 = BIT_FIELD_REF <*qResp, 8, 32>;
minimal.i:20:6: internal compiler error: verify_gimple failed
 void test(void)
      ^


typedef enum
{
    XYZZY,
} enumType;

typedef struct
{
    unsigned char More : 1;
} tResp;

typedef struct
{
    enumType QueryType;
    union
        {
        tResp l[0];
        } u;
} tQResp;

void test(void)
{
    tQResp *qResp = (0);
    if (qResp->u.l[0].More == 0)
        return;
}


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-29 12:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-29  9:52 [Bug middle-end/59338] New: error: position plus size exceeds size of referenced object in BIT_FIELD_REF jan.smets@alcatel-lucent.com
2013-11-29 10:11 ` [Bug middle-end/59338] [4.9 Regression] " rguenth at gcc dot gnu.org
2013-11-29 10:35 ` ebotcazou at gcc dot gnu.org
2013-11-29 12:09 ` rguenth at gcc dot gnu.org
2013-11-29 12:09 ` rguenth at gcc dot gnu.org

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