[Bug 66] New: Post/Pre increment expressions don't work in lhs.

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Mon Jul 1 06:21:13 PDT 2013


http://bugzilla.gdcproject.org/show_bug.cgi?id=66

             Bug #: 66
           Summary: Post/Pre increment expressions don't work in lhs.
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw at gdcproject.org
        ReportedBy: ibuclaw at gdcproject.org


eg:

void main()
{
  int pos = 0;

  while (true)
    {
      ++pos -= 1;
      assert (pos == 0);
    }
}

or

void main()
{
  int pos = 0;

  while (true)
    {
      ++pos %= 4;
      assert (pos != 4);
    }
}

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the D.gnu mailing list