[LLVMbugs] [Bug 1986] New: Incorrect type generated for anonymous struct
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Feb 6 07:48:16 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=1986
Summary: Incorrect type generated for anonymous struct
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: andersca at mac.com
CC: llvmbugs at cs.uiuc.edu
The following code
struct s
{
struct {
int a;
int b;
};
void *d;
};
is translated to
%struct.s = type { i8* }
by clang. Also, the warning
Macintosh:clang andersca$ clang -emit-llvm test.c -o -test.c:4:2: warning:
declaration does not declare anything
struct {
^
is emitted. GCC correctly emits the following type
%struct.anon = type { i32, i32 }
%struct.s = type { %struct.anon, i8* }
--
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