<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Crash with undefined variables with the name prefix "result""
href="http://llvm.org/bugs/show_bug.cgi?id=21899">bug 21899</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Crash with undefined variables with the name prefix "result""
href="http://llvm.org/bugs/show_bug.cgi?id=21899#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Crash with undefined variables with the name prefix "result""
href="http://llvm.org/bugs/show_bug.cgi?id=21899">bug 21899</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=21899#c12">comment #12</a>)
<span class="quote">> You may be able to shrink that test case a bit more by dropping the "else
> printf(...)". ;)
>
> I just tried out your patch against the original preprocessed .cpp file and
> it seems to work fine in addition to looking correct to me (got the
> suggestion of 'result0' in place of 'resulta' instead of getting a
> stackdump). Feel free to commit your patch with the reduced test case.
>
> Oh, and one small cleanup since you're touching the line,
> "!Result.isInvalid() && Result.get()" is the same as and can be replaced
> with "Result.isUsable()" (which I'd missed / didn't know about when I wrote
> that code).</span >
Thanks, I did this in r224172 and r224173. Should be fixed!</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>