http://llvm.org/bugs/show_bug.cgi?id=6893

           Summary: cbe creates illegal c from 'insertvalue'
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Compiling the following code with the cbe produces bad C

  define void @tester(){
    %vitem = insertvalue [2 x float] zeroinitializer, float 3.0, 0 ; 
    ret void
  }


~/tmp$ gcc -c tmp.c
tmp.c: In function 'tester':
tmp.c:147: error: 'struct l_unnamed0' has no member named 'field0'


'struct l_unnamed0' is defined as:
  /* Structure contents */
  struct l_unnamed0 { float array[2]; };

gcc error comes from:
  struct l_unnamed0 llvm_cbe_vitem;
  llvm_cbe_vitem.field0 = 0x1.8p+1;



llvm version tested: r102057

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to