[LLVMbugs] [Bug 113] New: [llvm-gcc] crash assigning into an array in a struct which contains a bitfield

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Thu Nov 13 21:57:42 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=113

           Summary: [llvm-gcc] crash assigning into an array in a struct
                    which contains a bitfield
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: sabre at nondot.org
        ReportedBy: brukman+bugs at uiuc.edu


This may be a duplicate or related to bug #6, but since the crash is in a
different place, I'll file it separately. This is distilled from glib-2.2.2:

% cat giochannel.i
struct _GIOChannel {
  int write_buf;
  char partial_write_buf[6];
  int d :1;
};

void g_io_channel_init (struct _GIOChannel *channel) {
  channel->partial_write_buf[0] = '\0';
}
% llvm-gcc giochannel.i
cc1: ../../gcc-3.4/gcc/llvm-expand.c:4663: llvm_expand_lvalue_expr: Assertion
`ActualOffset <= Offset && ActualSize >= Size && "Did not generate a legal
reference!"' failed.
giochannel.i: In function `g_io_channel_init':

giochannel.i:11: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.cs.uiuc.edu> for instructions.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list