Bug 12956 – [ICE] Assertion in expression.c:432

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-20T09:51:00Z
Last change time
2014-06-20T16:38:41Z
Keywords
ice, pull
Assigned to
nobody
Creator
simendsjo

Attachments

IDFilenameSummaryContent-TypeSize
1363traits.dtraits.dtext/plain46779

Comments

Comment #0 by simendsjo — 2014-06-20T09:51:36Z
DMD 2.065 (worked in 2.064) Same issue on both x86 and x86_64. dmd: expression.c:432: Expression* resolvePropertiesX(Scope*, Expression*, Expression*): Assertion `fd->type->ty == Tfunction' failed. I'll try to run dustmite on it later.
Comment #1 by simendsjo — 2014-06-20T10:27:10Z
Ok, dustmite is a bit problematic when there's a regression between two compiler versions. In other words: a reduced test-case might take a good while.
Comment #2 by simendsjo — 2014-06-20T10:56:59Z
Created attachment 1363 traits.d
Comment #3 by simendsjo — 2014-06-20T10:58:05Z
Compile the attached file with `dmd -c -unittest traits.d`. The file has not been reduced.
Comment #4 by k.hara.pg — 2014-06-20T14:56:27Z
The ICE issue is already fixed in git head, as a byproduct of the change: https://github.com/D-Programming-Language/dmd/pull/3332 I opened a PR with reduced test case. https://github.com/D-Programming-Language/dmd/pull/3684
Comment #5 by github-bugzilla — 2014-06-20T16:38:40Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/cc27e4cb4ef3594f02bd2afe92dd1d9ea2dc7350 fix Issue 12956 - [ICE] Assertion in expression.c:432 https://github.com/D-Programming-Language/dmd/commit/065396f2d7601b45c418051e870391d2f521b99e Merge pull request #3684 from 9rnsr/fix12956 [REG2.065] Issue 12956 - [ICE] Assertion in expression.c:432