<div dir="ltr">Committed in r183085.<div><br></div><div>-- </div><div style>David Majnemer</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 31, 2013 at 4:43 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Please also add a test that IRGen copes with this when it appears as a condition (for instance, on the LHS of another ?: operator) -- we have special handling for that which has had problems with throw-expressions in the past. Otherwise, LGTM, thanks!</div>

<div><br><div class="gmail_quote"><div><div class="h5">On Thu, May 30, 2013 at 10:48 PM, David Majnemer <span dir="ltr"><<a href="mailto:david.majnemer@gmail.com" target="_blank">david.majnemer@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">ToT clang incorrectly does not allow the following:<div><br></div><div>
int x = true ? (throw 1) : 2;</div>

<div><br></div><div>The problem is exists because we don't see beyond the parens.</div>
<div>This, in turn, causes us to believe that we are choosing between void and int which we diagnose as an error.</div><div><br></div><div>The attached patch will allow clang to see the 'throw' inside the parens.</div>


<span><font color="#888888">
<div><br></div><div>-- </div><div>David Majnemer</div></font></span></div>
<br></div></div>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>