<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - New -Wrestrict warning for GCC 9.0"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117644#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - New -Wrestrict warning for GCC 9.0"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117644">bug 117644</a>
              from <span class="vcard"><a class="email" href="mailto:sbergman@redhat.com" title="Stephan Bergmann <sbergman@redhat.com>"> <span class="fn">Stephan Bergmann</span></a>
</span></b>
        <pre>Came across that with a fresh GCC trunk (towards GCC 9) build now, too.  Looks
like a legitimate warning to me, as it appears that cnt - 1 == i can be true. 
However, with a patch of "if (cnt - 1 != i)" around that memcpy, GCC still
emits the warning, for which I now filed
<<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86196">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86196</a>> "Bogus -Wrestrict on
memcpy".</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>