<html>
    <head>
      <base href="https://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 --- - TopLevelExpressions fails on Android API 21-22"
   href="https://llvm.org/bugs/show_bug.cgi?id=27787">27787</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>TopLevelExpressions fails on Android API 21-22
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tberghammer@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Evaluating the final expression of the test case fails on Android API 21-22
with the following compile error:

error: warning: inline function 'DiamondD::~DiamondD' is not defined
used here
also defined here
error: cannot import unsupported AST node CXXFunctionalCastExpr
error: Couldn't lookup symbols:
  vtable for __cxxabiv1::__class_type_info
  vtable for __cxxabiv1::__vmi_class_type_info

Expression failed to evaluate:
int doTest() 

    int a = m.memberResult(); 
    a += MyClass::staticResult(); 
    a += m.externResult(); 
    a += MyEnum::myEnumThree; 
    a += myEnumOne; 
    a += AnotherClass().complicatedFunction(); 
    a += DiamondD(3).accessor(); 
    return a; 


Definition of DiamondD:
class DiamondA
{
private:
  struct {
    int m_i;
  };
public:
  DiamondA(int i) : m_i(i) { }
  int accessor() { return m_i; }
};

class DiamondB : public virtual DiamondA
{
public:
  DiamondB(int i) : DiamondA(i) { }
};

class DiamondC : public virtual DiamondA
{
public:
  DiamondC(int i) : DiamondA(i) { }
};

class DiamondD : public DiamondB, public DiamondC
{
public:
  DiamondD(int i) : DiamondA(i), DiamondB(i), DiamondC(i) { }
};


Failure reports from the build bots:
<a href="http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-android/builds/7109">http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-android/builds/7109</a>
<a href="http://lab.llvm.org:8011/builders/lldb-x86_64-darwin-13.4/builds/10358">http://lab.llvm.org:8011/builders/lldb-x86_64-darwin-13.4/builds/10358</a>

Build fingerprints for devices where the issue is known to be reproducable:
google/volantis/flounder:5.0.2/LRX22L/1816899:user/release-keys
samsung/zerofltexx/zeroflte:5.1.1/LMY47X/G920FXXU2BOG8:user/release-keys</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>