[Issue 13311] New: Bug 152 - ICE, CtorDeclaration::semantic(Scope*): Assertion `tf && tf->ty == Tfunction' failed (edit)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 17 00:06:29 PDT 2014


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

          Issue ID: 13311
           Summary: Bug 152 - ICE, CtorDeclaration::semantic(Scope*):
                    Assertion `tf && tf->ty == Tfunction' failed (edit)
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: ketmar at ketmar.no-ip.org

Created attachment 1386
  --> https://issues.dlang.org/attachment.cgi?id=1386&action=edit
minified testcase

when i try to compile my project, i got ICE with this message:

dmd: func.c:4413: virtual void CtorDeclaration::semantic(Scope*): Assertion `tf
&& tf->ty == Tfunction' failed.

seems that it was caused by 'import' inside struct in piece.d. if i'll remove
that import, ICE disappears.

ICE will also disappear if i'll remove constructor in tree.d which causes
'undefined identifier' error.

--


More information about the Digitalmars-d-bugs mailing list