[Issue 15788] New: ICE assert triggered on overloaded function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 11 10:33:23 PST 2016


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

          Issue ID: 15788
           Summary: ICE assert triggered on overloaded function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jbc.engelen at gmail.com

```
import std.range : iota;

void iota() {}

struct S {}

void foo() {
    S s;
    iota(s, s);
}
```

DMD v2.070-devel-204253b crashes with:
  core.exception.AssertError at func.d(4137): Assertion failure
DMD64 D Compiler v2.070-devel-204253b
OS X El Capitan

DMD v2.069.2 crashes.

DMD v2.068.2 does not crash, and errors with: Error: overload alias 'iota' is
not a variable


[*] The assert happens here:
https://github.com/D-Programming-Language/dmd/blob/204253b3111166cd30d5e42d936ed5f138920ff8/src/func.d#L4137

--


More information about the Digitalmars-d-bugs mailing list