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: [email protected]
Reporter: [email protected]
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.
--