[LLVMbugs] [Bug 18233] New: [-cxx-abi microsoft] Ctors for classes with vbases have is_most_derived as the second parameter instead of last
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Dec 12 14:56:40 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18233
Bug ID: 18233
Summary: [-cxx-abi microsoft] Ctors for classes with vbases
have is_most_derived as the second parameter instead
of last
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rnk at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
LLVM's use of gtest exhibits this problem in convertible_fwd_ostream:
class convertible_fwd_ostream : public std::ostream {
virtual void anchor();
raw_os_ostream ros_;
public:
convertible_fwd_ostream(std::ostream& os)
: std::ostream(os.rdbuf()), ros_(*this) {}
operator raw_ostream&() { return ros_; }
};
LLVM uses the parameters this, is_most_derived, os, and MSVC uses this, os,
is_most_derived, resulting in the obvious crash.
Should be easy to fix.
--
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/20131212/2033caa2/attachment.html>
More information about the llvm-bugs
mailing list