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

           Summary: unary ++ (post increment) invokes opBinary
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: k-fo...@onu.edu


--- Comment #0 from Kyle Foley <k-fo...@onu.edu> 2010-05-01 16:22:37 PDT ---
DMD 2.043

struct A
{
    int _;

    void opBinary(string op, U)(U rhs) { pragma(msg, op); }
}
auto a = A(42);
a++;

---

$ rdmd opbugs.d
++
opbugs.d(10): Error: template opbugs.main.A.opBinary(string op,U) does not
match any function template declaration
opbugs.d(10): Error: template opbugs.main.A.opBinary(string op,U) cannot deduce
template function from argument types !()()

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

Reply via email to