<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:eric@efcs.ca" title="Eric Fiselier <eric@efcs.ca>"> <span class="fn">Eric Fiselier</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - std::string_view encourages use-after-free"
   href="https://bugs.llvm.org/show_bug.cgi?id=34729">bug 34729</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>WONTFIX
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - std::string_view encourages use-after-free"
   href="https://bugs.llvm.org/show_bug.cgi?id=34729#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - std::string_view encourages use-after-free"
   href="https://bugs.llvm.org/show_bug.cgi?id=34729">bug 34729</a>
              from <span class="vcard"><a class="email" href="mailto:eric@efcs.ca" title="Eric Fiselier <eric@efcs.ca>"> <span class="fn">Eric Fiselier</span></a>
</span></b>
        <pre>Reopening. I'm working to roll out changes that diagnosed cases where the
argument to string view's constructor outlives the string view itself. 

Clang provides an attribute, lifetimebound, that gives us the ability to
diagnose this.

It has found dozens of bugs at Google. And I still have hundreds of untriaged
failures to go.

I hope to land the changes in upstream by the end of the month.

similarly we can use this atribute to diagnose when a strings data outlive the
string itself.</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>