[LLVMbugs] [Bug 17996] New: Pointer to member functions don't get thiscall cc by default with the ms abi

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 19 13:29:13 PST 2013


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

            Bug ID: 17996
           Summary: Pointer to member functions don't get thiscall cc by
                    default with the ms abi
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$  ./bin/clang -cc1 -triple i686-pc-win32 ~/llvm/Stmt.ii    -w -cxx-abi
microsoft
/Users/respindola/llvm/Stmt.ii:8:3: error: no matching function for call to
'zed'
  zed(&foo::bar);
  ^~~
/Users/respindola/llvm/Stmt.ii:5:6: note: candidate function not viable: no
known conversion from 'int (foo::*)() __attribute__((thiscall))' to 'bar_t
foo::*' for 1st argument
void zed(bar_t foo::*) {

When running on:

--------------------
struct foo {
  int bar();
};
typedef int bar_t();
void zed(bar_t foo::*) {
}
void baz() {
  zed(&foo::bar);
}
-------------------

-- 
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/20131119/70ca4dc6/attachment.html>


More information about the llvm-bugs mailing list