Thread overview
[Issue 7580] New: Identity assignment of Nullable crashes dmd
Feb 25, 2012
Kenji Hara
Feb 25, 2012
Kenji Hara
Feb 26, 2012
Walter Bright
Feb 26, 2012
Kenji Hara
February 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7580

           Summary: Identity assignment of Nullable crashes dmd
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2012-02-25 04:34:30 PST ---
Following code compilation crashes dmd.

import std.typecons;
void main()
{
    Nullable!(int, 0) ni;
    ni = ni;
}

This is alias this issue that fallbacks to template member function. Reduced test case:

struct S(T)
{
    void opAssign()(T value) {}
}
struct X(T)
{
    private T val;
    @property ref inout(T) get()() inout { return val; }
    alias get this;
}
void test()
{
    S!(int) s;
    X!int x;
    s = x;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7580


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

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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-02-25 09:03:29 PST ---
https://github.com/D-Programming-Language/dmd/pull/762

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7580



--- Comment #2 from github-bugzilla@puremagic.com 2012-02-25 15:59:22 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9d24a9916f573bb78504ef9a642fd7747f282393 fix Issue 7580 - Identity assignment of Nullable crashes dmd

https://github.com/D-Programming-Language/dmd/commit/a03216f62665b8e04d2d67dc1b52dc3ec8826163 Merge pull request #762 from 9rnsr/fix7580

Issue 7580 - Identity assignment of Nullable crashes dmd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7580


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7580


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrmocool@gmx.de


--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2012-02-25 18:44:07 PST ---
*** Issue 7588 has been marked as a duplicate of this issue. ***

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