<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Incorrect return stack address warning for pointer-to-member function expression"
   href="https://bugs.llvm.org/show_bug.cgi?id=38291">38291</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Incorrect return stack address warning for pointer-to-member function expression
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dcallahan@fb.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20598" name="attach_20598" title="Short C++ program to demonstrate the bug">attachment 20598</a> <a href="attachment.cgi?id=20598&action=edit" title="Short C++ program to demonstrate the bug">[details]</a></span>
Short C++ program to demonstrate the bug

A bug was introduced so that a return such as 
  Link & n = f->*Ptr;
  return n.next;
generates an incorrect warning about a stack address being returned.

I bisected this problem to

commit 354438d88cbb857858ffcbde72d4723b8548ce0a
Author: Richard Smith <<a href="mailto:richard-llvm@metafoo.co.uk">richard-llvm@metafoo.co.uk</a>>
Date:   Mon Jul 23 21:21:22 2018 +0000

    Fold -Wreturn-stack-address into general initialization lifetime
    checking.

    git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@337743">https://llvm.org/svn/llvm-project/cfe/trunk@337743</a>
91177308-0d34-0410-b5e6-96231b3b80d8</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>