PR12677 is a much more general interprocedural static analyzer check for lifetime issues. This check is much more specific (looking only for temporary-array-to-pointer decay) but as a result it can efficiently be performed as a normal compiler warning.<br>
<br><div class="gmail_quote">On Tue, Jun 5, 2012 at 1:32 AM, Gabor Greif <span dir="ltr"><<a href="mailto:gabor@mac.com" target="_blank">gabor@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Richard,<br>
<br>
how does this relate to <a href="http://llvm.org/bugs/show_bug.cgi?id=12677" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=12677</a>?<br>
<br>
Thanks,<br>
<br>
        Gabor<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: rsmith<br>
Date: Mon Jun  4 17:27:30 2012<br>
New Revision: 157955<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=157955&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=157955&view=rev</a><br>
Log:<br>
Add a warning for when an array-to-pointer decay is performed on an array<br>
temporary or an array subobject of a class temporary, and the resulting value<br>
is used to initialize a pointer which outlives the temporary. Such a pointer<br>
is always left dangling after the initialization completes and the array's<br>
lifetime ends.<br>
</blockquote>
<br>
<br>
</blockquote></div><br>