[LLVMbugs] [Bug 10081] c backend emits multiple definitions of global variables

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 9 13:09:16 PDT 2011


Bill Wendling <wendling at apple.com> changed:

           What    |Removed                     |Added
         Resolution|FIXED                       |INVALID

--- Comment #4 from Bill Wendling <wendling at apple.com> 2011-08-09 15:09:16 CDT ---
Doh! The fix wasn't correct. As Eli pointed out, this won't compile with it:

static void *x;
static void *y = &x;
static void *x = &y;
void *z = x;

The real solution is to compile the program as a C program and not as a C++

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