D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15788 - [REG2.069] ICE assert triggered on overloaded function
Summary: [REG2.069] ICE assert triggered on overloaded function
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: ice, pull
: 15879 (view as issue list)
Depends on:
Blocks:
 
Reported: 2016-03-11 18:33 UTC by Johan Engelen
Modified: 2016-04-05 20:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Johan Engelen 2016-03-11 18:33:23 UTC
```
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@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
Comment 2 github-bugzilla 2016-03-15 07:10:57 UTC
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a2133164b7eecc296374f3bc3ae28b773b009dae
fix Issue 15788 - ICE assert triggered on overloaded function

https://github.com/D-Programming-Language/dmd/commit/bd4924b32a28c52d6b3da791977fdc49361261d5
Merge pull request #5519 from 9rnsr/fix15788

[REG2.069] Issue 15788 - ICE assert triggered on overloaded function
Comment 3 github-bugzilla 2016-03-19 19:27:14 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a2133164b7eecc296374f3bc3ae28b773b009dae
fix Issue 15788 - ICE assert triggered on overloaded function

https://github.com/D-Programming-Language/dmd/commit/bd4924b32a28c52d6b3da791977fdc49361261d5
Merge pull request #5519 from 9rnsr/fix15788
Comment 4 ag0aep6g 2016-04-05 20:05:38 UTC
*** Issue 15879 has been marked as a duplicate of this issue. ***