[LLVMbugs] [Bug 2733] New: Can't use named primitive type in structure definition

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Aug 29 17:30:33 PDT 2008


           Summary: Can't use named primitive type in structure definition
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: d_j_v at mac.com
                CC: llvmbugs at cs.uiuc.edu

Here is some .ll code:

%t1 = type i32
%t2 = type { %t1 }
@i1 = constant %t2 { %t1 15 } ; ERROR
@i2 = constant %t2 { i32 15 } ; NO ERROR

@i1 will not compile, with the following error:
error: syntax error, unexpected EUINT64VAL, expecting '*' while reading token:

@i2 compiles just fine.

Expected behavior is that both @i1 and @i2 would compile equally well. Using
%t1 in the definition of type %t2 works, so, by analogy, using it in the
definition of @i1 should work as well.

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.

More information about the llvm-bugs mailing list