<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang-cl gives: cannot compile this non-trivial argument copy for thunk yet with virtual inheritance"
   href="http://llvm.org/bugs/show_bug.cgi?id=20053">20053</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl gives: cannot compile this non-trivial argument copy for thunk yet with virtual inheritance
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jmuizelaar@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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() { ; }</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>