Issue 14923 - [REG2.067] ICE: Assertion failed: (tret->ty != Tvoid), function semantic3, file func.c, line 1736.
Summary: [REG2.067] ICE: Assertion failed: (tret->ty != Tvoid), function semantic3, fi...
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
Depends on:
Blocks:
 
Reported: 2015-08-15 05:15 UTC by Timothee Cour
Modified: 2015-08-29 08:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Timothee Cour 2015-08-15 05:15:43 UTC
regression:
dmd_068 -c -o- main.d
Assertion failed: (tret->ty != Tvoid), function semantic3, file func.c, line 1736.

worked in dmd_066 (no ICE)

----
auto bar(alias fun)(){
  size_t counter;
  scope(exit)    counter++;

  Object a2;
  if(auto ai=cast(A)a2) return fun(ai);
  if(auto ai=cast(B)a2) return fun(ai);
}

void Parse(C a) {
  bar!(b=>Parse(b))();
}

class A{
}

class C{
}

class B:C{
}
----
Comment 2 github-bugzilla 2015-08-24 11:23:00 UTC
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bdd7d5bf7b5dd148ab0dd0087b2754b0b6867ce7
fix Issue 14923 - ICE: Assertion failed: (tret->ty != Tvoid), function semantic3, file func.c, line 1736.

https://github.com/D-Programming-Language/dmd/commit/d780e3114333c17056e78f982012f37ca141e958
Merge pull request #4949 from 9rnsr/fix14923

[REG2.067] Issue 14923 - ICE: Assertion failed: (tret->ty != Tvoid), function semantic3, file func.c, line 1736.
Comment 3 github-bugzilla 2015-08-29 08:02:22 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bdd7d5bf7b5dd148ab0dd0087b2754b0b6867ce7
fix Issue 14923 - ICE: Assertion failed: (tret->ty != Tvoid), function semantic3, file func.c, line 1736.

https://github.com/D-Programming-Language/dmd/commit/d780e3114333c17056e78f982012f37ca141e958
Merge pull request #4949 from 9rnsr/fix14923