[Issue 9936] New: Wrong opBinary/opBinaryRight rewrite.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 15 09:35:36 PDT 2013


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

           Summary: Wrong opBinary/opBinaryRight rewrite.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2013-04-15 09:35:35 PDT ---
DMD 2.062:

struct S{ auto opBinary(S s){ return 3; } }
static assert(!is(typeof(S()+S())));

The static assertion should pass. opBinary is not even a template.
The analogous bug exists for opBinaryRight.

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