Bug 11944 – ICE(expression.c) Assertion `f' failed.

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-17T20:38:00Z
Last change time
2014-01-22T18:19:19Z
Keywords
ice, pull
Assigned to
nobody
Creator
redballoon36

Comments

Comment #0 by redballoon36 — 2014-01-17T20:38:26Z
The error occurs in both 2.064.2 and git master 2b521dde09ca7e09fa71e373a7d13cdddc06dd2d. Tested on Linux, x86_64. The full message is: dmd: expression.c:9330: virtual Expression* AddrExp::semantic(Scope*): Assertion `f' failed. The following code causes the assertion failure: void aFunc(int var) { } void do_command(func, T)(func, T arg) { } auto var = &do_command!aFunc;
Comment #1 by hsteoh — 2014-01-19T08:01:34Z
Confirmed still happens on git HEAD (Linux/64).
Comment #2 by k.hara.pg — 2014-01-20T03:19:57Z
Comment #3 by github-bugzilla — 2014-01-20T04:14:06Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5d1237d14eb5b4c1e2a37b875fef5be60f926416 fix Issue 11944 - ICE(expression.c) Assertion `f' failed. https://github.com/D-Programming-Language/dmd/commit/ffb51147936181aa4f141afaccd83acba7dc229c Merge pull request #3125 from 9rnsr/fix11944 Issue 11944 - ICE(expression.c) Assertion `f' failed.
Comment #4 by github-bugzilla — 2014-01-22T18:19:19Z
Commit pushed to release at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d6a5df97319e6ea1b61bf0adf6bddc2b59a34a5b Merge pull request #3125 from 9rnsr/fix11944 Issue 11944 - ICE(expression.c) Assertion `f' failed.