<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Checking for use of references to an automatic variable outside of its scope"
   href="https://llvm.org/bugs/show_bug.cgi?id=29069">29069</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Checking for use of references to an automatic variable outside of its scope
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>npm@xionlogic.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17012" name="attach_17012" title="This archive contains the .cpp file and the makefile described above">attachment 17012</a> <a href="attachment.cgi?id=17012&action=edit" title="This archive contains the .cpp file and the makefile described above">[details]</a></span>
This archive contains the .cpp file and the makefile described above

Hello, I'd like clang's static code analyser to be able to detect use of
references to an automatic variable outside of its scope. I've attached a
test-case that shows a bit of code that takes pointer to an automatic variable
and use that pointer outside the scope of the original automatic variable. I
have also attached a make file that compiles the .cpp file so that it can be
run with scan-build to run the static code analyser on the .cpp file.</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>