https://issues.dlang.org/show_bug.cgi?id=16214

          Issue ID: 16214
           Summary: [REG2.069] ICE: Assertion `fd->semanticRun ==
                    PASSsemantic3done' failed.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

Found by ted who posted to D.General:
http://forum.dlang.org/post/[email protected]

Reduced code (two files):

----
module a;
import b;

class LibasyncEventLoop : EventLoop {}


module b;
import a;

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

class EventLoop
{
    auto f() { auto x = [Tuple!().init]; }
}
----

`dmd -c a.d` fails with:

----
dmd: glue.c:809: void FuncDeclaration_toObjFile(FuncDeclaration*, bool):
Assertion `fd->semanticRun == PASSsemantic3done' failed.
Aborted (core dumped)
----

Compiles with 2.068. ICE occurs since 2.069.

--

Reply via email to