<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:maic23@live.de" title="maic <maic23@live.de>"> <span class="fn">maic</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ubsan] False positive object-size error in constructors of classes with multiple virtual inheritance"
   href="https://bugs.llvm.org/show_bug.cgi?id=40607">bug 40607</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>maic23@live.de
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ubsan] False positive object-size error in constructors of classes with multiple virtual inheritance"
   href="https://bugs.llvm.org/show_bug.cgi?id=40607#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ubsan] False positive object-size error in constructors of classes with multiple virtual inheritance"
   href="https://bugs.llvm.org/show_bug.cgi?id=40607">bug 40607</a>
              from <span class="vcard"><a class="email" href="mailto:maic23@live.de" title="maic <maic23@live.de>"> <span class="fn">maic</span></a>
</span></b>
        <pre>Fixed between clang-9 and clang-11:


$ clang++-11 -std=c++11 -O2 -fsanitize=object-size ./2.cpp  && ./a.out          
$ clang++-9 -std=c++11 -O2 -fsanitize=object-size ./2.cpp  && ./a.out
2.cpp:9:8: runtime error: constructor call on address 0x7ffc9fa7f7a8 with
insufficient space for an object of type 'D'
0x7ffc9fa7f7a8: note: pointer points here
 00 00 00 00  c1 11 00 00 a0 04 00 00  00 00 00 00 00 00 00 00  d0 3f e5 2d 5b
7f 00 00  02 00 00 00
              ^</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>