<div dir="ltr">ToT clang incorrectly does not allow the following:<div><br></div><div style>int x = true ? (throw 1) : 2;</div><div style><br></div><div style>The problem is exists because we don't see beyond the parens.</div>
<div style>This, in turn, causes us to believe that we are choosing between void and int which we diagnose as an error.</div><div style><br></div><div style>The attached patch will allow clang to see the 'throw' inside the parens.</div>
<div style><br></div><div style>-- </div><div style>David Majnemer</div></div>