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: [email protected]
Reporter: [email protected]
```
import std.range : iota;
void iota() {}
struct S {}
void foo() {
S s;
iota(s, s);
}
```
DMD v2.070-devel-204253b crashes with:
[email protected](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
--