[LLVMbugs] [Bug 4922] New: Clang's Sema:: ActOnEndOfTranslationUnit completes tentative decls in nondeterminstic order

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Sep 7 21:15:38 PDT 2009


           Summary: Clang's Sema::ActOnEndOfTranslationUnit completes
                    tentative decls in nondeterminstic order
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu

While investigating PR4888, I discovered that Sema::ActOnEndOfTranslationUnit
is completing tentative definitions in DenseMap iteration order, leading to
nondeterminstic generated code.  This is badness.  One possible fix is to have
Sema put tentative definitions in a vector as well as the densemap, and then
emit in vector order.

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