[LLVMbugs] [Bug 7050] New: Global variable initialisation issue

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 5 02:11:52 PDT 2010


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

           Summary: Global variable initialisation issue
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4826)
 --> (http://llvm.org/bugs/attachment.cgi?id=4826)
Singleton test case

The following testcase is reduced from boost::serialization. It asserts at
runtime in clang. It appears to be fixed if lines 'assert(!
detail::singleton_wrapper<T>::m_is_destroyed);' and 'use(instance);' are
swapped around (lines 34 and 35).

This bug is very sensitive. On apple you need to add '-m64 -O' to trigger it.

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