<< 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    

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

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

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 Sun Apr 22 20:15:15 CEST 2018 using JIRA Enterprise Edition, Version: 3.13.1-#333.