#1265 Handle implicit cast when short-circuiting ternary expression

closed
nobody
None
5
2013-03-24
2013-03-01
No

This patch fixes an obscure corner case. If a ternary operation with mixed logic and real operands is short-circuited and the logic value is selected, that value
should be converted to a real value. In most cases this happens automatically when the result of the ternary operation is used, but this does not happen in the case that the result is used in a self-determined context.

1 Attachments

Discussion

  • Martin Whitaker

    Martin Whitaker - 2013-03-01

    Here is a regression test for the test suite. It requires no special compiler flags and is self-checking.

     
  • Stephen Williams

    Applied to git master.

     
  • Stephen Williams

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks