[Issue 5810] Struct postincrement generates 'no effect' error if used on struct member

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 6 04:21:16 PDT 2011


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |clugdbug at yahoo.com.au
            Summary|BigInt++ 'no effect'        |Struct postincrement
                   |problem                     |generates 'no effect' error
                   |                            |if used on struct member


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-05-06 04:17:21 PDT ---
It's nothing to do with BigInt. Here's a reduced test case:

struct Bug5810 {
    void opUnary(string op)()    { }
}

struct Foo {
    Bug5810 x;
    void bar() { x++; }
}

test2.d(13): Error: var has no effect in expression (__pitmp4)

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