[LLVMbugs] [Bug 18721] New: std::bind() seems to not pass placeholder arguments correctly when they are repeated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 4 00:04:35 PST 2014


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

            Bug ID: 18721
           Summary: std::bind() seems to not pass placeholder arguments
                    correctly when they are repeated
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: extproxy at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12005
  --> http://llvm.org/bugs/attachment.cgi?id=12005&action=edit
Code that demonstrates the bug

Please see attached file chk.cc. I compiled the file using clang++ as follows:
  clang++ -std=c++11 chk.cc -o chk

I then ran it. Got the output:

0xdd5048
0


I was expecting to see pointers that got printed out as being non-NULL -
however, one of them is NULL. Something to do with the std::bind()
implementation.

-- 
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/20140204/5cef8cdd/attachment.html>


More information about the llvm-bugs mailing list