[Issue 21236] New: Associative array opApply is not nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 11 01:55:00 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21236

          Issue ID: 21236
           Summary: Associative array opApply is not nothrow
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: andrej.mitrovich at gmail.com

-----
void main () nothrow
{
    int[int] map;

    foreach (pair; map.byKeyValue)  // OK
    {
    }

    foreach (key, val; map)  // Error: `_aaApply2` is not `nothrow`
    {

    }
}
-----

I couldn't find a related issue for AA's that was still open.

--


More information about the Digitalmars-d-bugs mailing list