-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.duplicateResolved as duplicateResolved as duplicate
Description
| Bugzilla Link | 1986 |
| Resolution | DUPLICATE |
| Resolved on | May 27, 2008 00:20 |
| Version | unspecified |
| OS | All |
| Reporter | LLVM Bugzilla Contributor |
| CC | @efriedma-quic |
Extended Description
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* }
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.duplicateResolved as duplicateResolved as duplicate