[LLVMbugs] [Bug 13388] New: Detect violations of static initialization order rules

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 18 01:22:20 PDT 2012


             Bug #: 13388
           Summary: Detect violations of static initialization order rules
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: tetra2005 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Project Static Analyzer says that developrs are open to feature requests so
here's one. From my experience violations of static initialization order are
rather common in large databases and many compilers don't issue any warnings on
this. This causes hard to find bugs when changing compiler or version which
aren't easily detectable.

Adding this check seems to be rather trivial (I guess I could even add myself
when I have time) but may have tremendous benefit for C++ community (and
probably for Clang itself because AFAIK there are no open-source
compilers/analyzers doing anything like this).

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