www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6201] New: [GSoC] Ref Non-Ref overloading doesn't work on structs.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6201

           Summary: [GSoC] Ref Non-Ref overloading doesn't work on
                    structs.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: cristi.cobzarenco gmail.com



13:02:46 PDT ---
Code:
struct Test {}

void f( Test x ) {}
void f( ref Test x ) {}

int main() {
    Test x;
    f( x );
    return 0;
}

This fails with:
main.d(8): Error: function main.f called with argument types:
    ((Test))
matches both:
    main.f(Test x)
and:
    main.f(ref Test x)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 23 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6201


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |k.hara.pg gmail.com
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 4843 ***

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