<< Back to previous view

[PCC-354] Bool ++/-- postfix is the same as prefix Created: 10/Jun/11  Updated: 06/Jul/11

Status: Resolved
Project: pcc
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: TAKAHASHI Tamotsu Assignee: Anders Magnusson
Resolution: Fixed Votes: 0

File Attachments: File bool.diff    

 Description   
   int main()
   {
    _Bool b = 0;
    if (b++)
    return 1;
    return 0;
   }

returns 1.
Note that b is incremented by the postfix.



 Comments   
Comment by Anders Magnusson [ 06/Jul/11 07:02 PM ]
Great and thanks for your patch! I've applied it with a slight change.
Generated at Fri Sep 19 15:51:11 CEST 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.