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

    <tr>
        <th>Summary</th>
        <td>
            Address sanitizer behaves differently at -O3 than -O0
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          jgopel
      </td>
    </tr>
</table>

<pre>
    https://godbolt.org/z/54Mfo5T74

Also worth noting: GCC catches this error at `-O3`. Not sure if this is intended behavior on an optimizer write elision or a bug.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUcFu2zAM_Rr7QsRgZCtODjpkLdZT18t-QLZoW4UiBRLdoP360S6GAQMoSgTJ9x6ehuQ-zcJ8L1V7rdRPiTm5IQVuUp6l-pKju9cp6d99V-FzhdfvfA0lwSNlXiAm9nEWAHh5eoLR8rhQAV58Aco5ZbAM1QkPb63kBn4lhrJmAj99D20RmaIjBwMt9sPLTopgI6Q7-5v_ogyP7JmAgi9eWhsoDOvc1M607tJebM2eA5mrc5lKgWKj531xRxQ9zk8TZYocPjdBokbYheLwhvWaw_8ueF7WoRnTTYoQPv5eh3tO7zSylL6Ulcrmj9b9sV5Mq6euv-juiM4h4tjbwaFVpEdCZXtVBztQKKbSPyqlIj1gh5B3pZ9rbxQqhfp4Vti1-tQMeFani8Zjd56wRaw6pJv1odl0bN9TZ7NLEh-KNMUaLv-athQ_R6KdTvDtykvK5n1Odwr1zmx25X8ASvSmog">