[Issue 2840] New: Missing line number for int %= complex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 16 01:45:52 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2840

           Summary: Missing line number for int %= complex
           Product: D
           Version: 1.042
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: clugdbug at yahoo.com.au


void main(){
   int x;
   x %= 2+2i;
}
fog.d(3): Error: cannot perform modulo complex arithmetic
Error: long has no effect in expression (0)

---
I don't know where the 'long' comes from.
Both D1 and D2. This is one of the many op= bugs for erroneous complex
operations, along with issue #718 and issue #2839.


-- 



More information about the Digitalmars-d-bugs mailing list