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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to