[LLVMbugs] [Bug 627] NEW: [llvm-gcc] Crash on some zero sized structure copies

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Sep 9 21:59:29 PDT 2005


           Summary: [llvm-gcc] Crash on some zero sized structure copies
           Product: tools
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org

llvm-gcc crashes on this C testcase:

 #include <stdio.h>

   typedef struct {} raw_spinlock_t;

   typedef struct {
     raw_spinlock_t raw_lock;
   } spinlock_t;

   raw_spinlock_t one_raw_spinlock (void) {
       raw_spinlock_t raw_lock;
       printf ("returning raw_lock\n");
       return raw_lock;

   int main(void)
     spinlock_t lock = (spinlock_t) { .raw_lock = one_raw_spinlock() };
     return 0;


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