www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11146] New: Wrong line number of "identity assignment operator overload is illegal"

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

           Summary: Wrong line number of "identity assignment operator
                    overload is illegal"
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-09-30 00:30:59 PDT ---
From fail_compilation/class1.d:

class C    // Line 1
{
    // Non-templated identity opAssign
    void opAssign(C rhs){}    // Line 4
}

Prints:
test.d(1): Error: class test.C identity assignment operator overload is illegal

But it should print:
test.d(4): Error: class test.C identity assignment operator overload is illegal

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 30 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11146


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-09-30 00:34:19 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2602

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 30 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11146



--- Comment #2 from github-bugzilla puremagic.com 2013-09-30 05:55:48 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ddceb6ae9d73ce12e4ced9263931853a1e294f12
fix Issue 11146 - Wrong line number of "identity assignment operator overload
is illegal"

https://github.com/D-Programming-Language/dmd/commit/8d20595ec756bfd8756e4f3fd080d3aba20a4fcb
Merge pull request #2602 from 9rnsr/fix11146

Issue 11146 - Wrong line number of "identity assignment operator overload is
illegal"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 30 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11146


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


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