Skip to content

Commit

Permalink
Fix Issue 16214 - [REG2.069] ICE: Assertion fd->semanticRun == PASSse…
Browse files Browse the repository at this point in the history
…mantic3done failed
  • Loading branch information
RazvanN7 committed Dec 18, 2018
1 parent 55ce0e2 commit 07a1004
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dmd/dstruct.d
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ extern (C++) void semanticTypeInfo(Scope* sc, Type t)
// https://issues.dlang.org/show_bug.cgi?id=15149
// if the typeid operand type comes from a
// result of auto function, it may be yet speculative.
unSpeculative(sc, sd);
// unSpeculative(sc, sd);
}

/* Step 2: If the TypeInfo generation requires sd.semantic3, run it later.
Expand Down
10 changes: 10 additions & 0 deletions test/compilable/imports/test16214b.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module test16214b;
import test16214a;

struct Appender() { int[] arr; }
struct Tuple() { alias A = Appender!(); }

class EventLoop
{
auto f() { auto x = [Tuple!().init]; }
}
6 changes: 6 additions & 0 deletions test/compilable/test16214a.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// REQUIRED_ARGS: -Icompilable/imports

module test16214a;
import test16214b;

class LibasyncEventLoop : EventLoop {}

0 comments on commit 07a1004

Please sign in to comment.