<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56441>56441</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang3.5.2 build app as release, crash when run, but ok if built with clang11
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          barton-git
      </td>
    </tr>
</table>

<pre>
    problem is like this

struct test
{
...
};

int func call()
{
  test t;
  deal with t;
}

when I built the code with clang 3.5.2, if set release it will crash, and no stack info when use gdb. But if I change the compiler with clang 11, everything goes well. And more when I creat test as "test* p = new test", if under 3.5.2, the application is ok. I don't know if it is a bug in previous clang.

thanks for any answer
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdkt2OozAMhZ8m3FgT0UALXHDRbjXSPEYIBrKkCUpCq779OtCZqVbiJ9jx8fEXOtc_28W7zuANdACjZ4Q46cDyK8vP-zNEv6oIEUN8havLvuCcf0eurLi8F2kbYVitAiWNYaJmovmvGDZFiD-FAD1KAw8dp7dokn7TfUxo4Qu6VRuqnRCU63GvUUbaEQp-5IKJP6AHCBjBo0EZEHSkXcaA8jJMKS9tD9ZBiFLNoO3gYNNeae_Ydxwua0waX6Am0sVXs9uiDfr3hodDUsM7-ieRo8DoMMADjeFwph435xFetpVHuZMEGYAJsUEVZ1iAFVew-Ngxi-8JVttTt5-Zkge5LEYrGbWz6cjczEm4d5aJKsJs3SPV0bSUk8RppNlg8XjXbg27Zf4ONNJ0c4DBeSLypDs80Gd9W_RN0cgs6miw3co2Fxv5PplIE7zgJmsb131Ov9oU6Qigm5Ob_bR-mR0O2epNO8W4BFacmfika6T02nFCTB_G3L9fH_R__kVFUD51CCsGWhxPZXnIpvZQdbUsC1FV2JWiPzV1U1dDrUrVDENZlpmRHZrQsuOFmCa8m0Tie7xmuhW5EHmV13l1LMucV6dBdqIWJ1RNXcsTK3O8SW148sGdHzPfbpYIa6Ck0SGG36QMQY8WcWtH-nKNk_NtJ3109oPmy7bu7eb-H_ZsGNY">