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

            Bug ID: 20053
           Summary: clang-cl gives: cannot compile this non-trivial
                    argument copy for thunk yet with virtual inheritance
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The following code gives 'error: cannot compile this non-trivial argument copy
for thunk yet' when compiling with clang-cl. Interestingly enough, the
inheritance from F is required to trigger the problem. Just have a destructor
for F instead of JavaScriptChild does not trigger the problem

class A {
  A(A &);
};
class B {
  virtual int *m_fn1(int *, A);
};
class C : virtual B {};
class D : virtual B {
  int *m_fn1(int *, A);
};
class F : D, C { };
class JavaScriptChild : F {
  ~JavaScriptChild();
};
JavaScriptChild::~JavaScriptChild() { ; }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to