Bug ID: 36610
           Summary: clang can miscompile code involving uninitialized
                    value and xor-s
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs

Created attachment 20001
demonstration code

It appears can miscompile (or incorrectly optimize) code where an uninitialized
variable gets assigned a value through a series of assignments that set only a
subset of bits in the variable.  In the end all bits in the variable get
defined values, but intermediate assignments involve operations with undefined

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to