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

           Summary: Warn about global destructors for static locals on
                    platforms that don't use __cxa_atexit
           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]


On platforms that don't use __cxa_atexit, or when use of that function has been
specifically disabled, static locals are implemented using global destructors
that test the initialization guard to determine if the global was initialized. 
On these platforms, -Wglobal-constructors should warn about static local
variables that require a destructor.

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