[LLVMbugs] [Bug 6521] New: decl not getting marked used

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 5 20:29:25 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6521

           Summary: decl not getting marked used
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


struct Foo {
  static int count() __attribute__((constructor)) {
    static int cnt = 0;
    return ++cnt;
  }
};

int main() {
  return Foo::count();
}


This isn't outputting the body of Foo::count for some reason, and isn't
honoring the attribute ctor either.

-- 
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