Skip to content

Commit

Permalink
Merge pull request #9101 from RazvanN7/Issue_16214
Browse files Browse the repository at this point in the history
Fix Issue 16214 - [REG2.069] ICE: Assertion fd->semanticRun == PASSsemantic3done failed
  • Loading branch information
WalterBright committed Dec 21, 2018
2 parents 624236c + 07a1004 commit 076a217
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
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
@@ -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
@@ -0,0 +1,6 @@
// REQUIRED_ARGS: -Icompilable/imports

module test16214a;
import test16214b;

class LibasyncEventLoop : EventLoop {}

0 comments on commit 076a217

Please sign in to comment.