[Issue 11445] New: adding double[string] causes crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 5 09:09:35 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11445

           Summary: adding double[string] causes crash
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dbdavidson at yahoo.com


--- Comment #0 from Daniel Davidson <dbdavidson at yahoo.com> 2013-11-05 09:09:34 PST ---
The following causes a crash. Probably not the best idea to call it. Not
finding a merge for associative arrays, my hope was adding them would do it.

import std.stdio;

void main() {
  double[string] a = [ "foo" : 22.2 ];
  double[string] b = [ "bar" : 22.2 ];
  writeln(a+b);
}

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


More information about the Digitalmars-d-bugs mailing list