Thread overview
[Issue 4641] New: Associative arrays of structs with alias this broken.
Aug 13, 2010
Pelle Månsson
Sep 20, 2010
Don
Oct 08, 2010
Walter Bright
August 13, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4641

           Summary: Associative arrays of structs with alias this broken.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: pelle.mansson@gmail.com


--- Comment #0 from Pelle Månsson <pelle.mansson@gmail.com> 2010-08-13 13:43:42 PDT ---
Code: ==========================================8<------------------------------------

struct S {
    int i;
    alias i this;
}

void main() {
    S[int] ss;
    ss[0] = S.init; // This line causes Range Violation.
}

------------------------------------>8==========================================

I am using DMD v2.048.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4641


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |clugdbug@yahoo.com.au
           Severity|major                       |critical


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-09-20 08:37:54 PDT ---
Related to bug 2451 and possibly also 2943.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 08, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4641


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2010-10-08 13:40:56 PDT ---
http://www.dsource.org/projects/dmd/changeset/709

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