[Bug 27787] New: TopLevelExpressions fails on Android API 21-22

Bug ID 27787
Summary TopLevelExpressions fails on Android API 21-22
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter tberghammer@google.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

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:
[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)
[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)

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