[LLVMbugs] [Bug 19740] New: operator >>(istream, void * &) reads wrong value on LP64 environment

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 14 05:23:03 PDT 2014


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

            Bug ID: 19740
           Summary: operator >>(istream, void * &) reads wrong value on
                    LP64 environment
           Product: libc++
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kikairoya+llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

operator >>(istream, void * &) stores only higher 32bit value of 64bit pointer
value to destination.

minimum example:
http://melpon.org/wandbox/permlink/X1NTsMmeqS0zAH1z

old version works correctly:
http://melpon.org/wandbox/permlink/FDNTts8q18s0wqEa

compare to libstdc++
http://melpon.org/wandbox/permlink/lnt81Rg8j1kHhQhu

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140514/9e459047/attachment.html>


More information about the llvm-bugs mailing list