[LLVMbugs] [Bug 9406] New: Transparent unions not resolved when function is overloaded
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 5 05:52:12 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9406
Summary: Transparent unions not resolved when function is
overloaded
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tim.nieradzik at gmx.de
CC: llvmbugs at cs.uiuc.edu
typedef struct {
char *str;
char *str2;
} Class;
typedef union {
Class *object;
} Instance __attribute__((transparent_union));
__attribute__((overloadable)) void Class_Init(Instance this, char *str, void
*str2) {
this.object->str = str;
this.object->str2 = str2;
}
__attribute__((overloadable)) void Class_Init(Instance this, char *str) {
this.object->str = str;
this.object->str2 = str;
}
int main(void) {
Class obj;
Class_Init(&obj, "Hello ", " World");
}
--
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