www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7306] New: Access violation with .byValue of an empty associative array

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

           Summary: Access violation with .byValue of an empty associative
                    array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



With DMD 2.058head this program gives a Access Violation, but I think this
"vals" should just be an empty range:


void main() {
    int[int] aa;
    auto vals = aa.byValue;
    auto ks = aa.byKey;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 17 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7306


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei metalanguage.com
         Resolution|                            |FIXED



20:08:08 PST ---
https://github.com/D-Programming-Language/druntime/commit/3b6ba08b1d8705d7e59f40f634e19b02d67e68d6

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