https://llvm.org/bugs/show_bug.cgi?id=30613

            Bug ID: 30613
           Summary: std::type_info::hash_code violates strict aliasing
           Product: libc++abi
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedb...@nondot.org
          Reporter: rjmcc...@apple.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com
    Classification: Unclassified

Noticed by inspection.  It reinterpret_casts the name field to size_t* and
dereferences that instead of just reinterpret_casting the name value to size_t.
 There doesn't seem to be any good reason for it.

type_info fields are always immutable, so there's zero chance of this causing
any real problems, but it's easy to fix.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to