[Issue 5810] New: BigInt++ 'no effect' problem

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 3 16:36:41 PDT 2011


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

           Summary: BigInt++ 'no effect' problem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-04-03 16:33:07 PDT ---
import std.bigint;
struct Foo {
    BigInt x;
    void bar() { x++; }
}
void main() {}


DMD 2.052 shows:

test.d(4): Error: var has no effect in expression (__tmp19)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list