http://llvm.org/bugs/show_bug.cgi?id=2733
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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
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:
'15'
@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs