Bug 13311 – [REG2.065] ICE, CtorDeclaration::semantic(Scope*): Assertion `tf && tf->ty == Tfunction' failed

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-17T07:06:00Z
Last change time
2014-08-28T04:10:22Z
Keywords
ice, pull
Assigned to
nobody
Creator
ketmar

Attachments

IDFilenameSummaryContent-TypeSize
1386testcase_dmd.tgzminified testcaseapplication/x-gzip358

Comments

Comment #0 by ketmar — 2014-08-17T07:06:29Z
Created attachment 1386 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.
Comment #1 by k.hara.pg — 2014-08-26T12:51:38Z
Comment #2 by github-bugzilla — 2014-08-26T17:19:23Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1ea0f027ab414b79da664a01696f066c62fe401a fix Issue 13311 - ICE, CtorDeclaration::semantic(Scope*): Assertion `tf && tf->ty == Tfunction' failed https://github.com/D-Programming-Language/dmd/commit/f122c1313577db09b34aaad06e5a061ae6f01091 Merge pull request #3902 from 9rnsr/fix13311 [REG2.065] Issue 13311 - ICE, CtorDeclaration::semantic(Scope*): Assertion `tf && tf->ty == Tfunction' failed
Comment #3 by github-bugzilla — 2014-08-28T04:10:22Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/77d60e19b6163dcd6872cef65da9d249a6b1cb98 Merge pull request #3902 from 9rnsr/fix13311 [REG2.065] Issue 13311 - ICE, CtorDeclaration::semantic(Scope*): Assertion `tf && tf->ty == Tfunction' failed