title: C++ Crash on a non-void function doesn't have return statement
body: <p>I got a crash when a non void function like this doesn't return anything:</p>
  <pre><code>#include &lt;iostream&gt;
  
      class ClassA {
      public:
          bool foo();
          void foo2();
      };
      bool ClassA::foo() {
          int var1 = 100;
          var1++; 
      }
      
      void ClassA::foo2() {
         foo();
      }
      
      int main() {
         ClassA a;
         a.foo2();
         printf(&quot;end of code&quot;);
         return 0;
      }
  </code></pre>
  <p>Note that the return type of foo() is bool but implementation doesn't return anything. The crash is 100% reproducible on Android NDK-version r19.</p>
  <p>Also same code works fine on NDK-r15c.</p>