Bug 11844 – ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit)

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-30T00:20:00Z
Last change time
2014-01-07T02:32:56Z
Keywords
ice, pull
Assigned to
nobody
Creator
redballoon36

Comments

Comment #0 by redballoon36 — 2013-12-30T00:20:57Z
The error does not occur in 2.063.2, but does in 2.064 and git master (7cb48f8558809e69b60ee6dfc56ea6af73ee405f). Tested on both Linux and OSX, but both were 64-bit. The following code causes the assertion failure: public auto make_encode(T, string name)() { return mixin("function(T self) { return self.encodeField!\""~ name ~ "\"(); }"); } class FileData { ulong _member; @make_encode!(FileData, "member")() ulong member() const { return _member; } ubyte[] encodeField(string key)() { } }
Comment #1 by k.hara.pg — 2014-01-03T06:39:37Z
Comment #2 by github-bugzilla — 2014-01-04T23:33:06Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/91f6a96bc3bc0ec417f0328f7cb7833826e6f5af fix Issue 11844 - ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit) https://github.com/D-Programming-Language/dmd/commit/c90f30092f252cc38d2b9c74114a44170b1cd36a Merge pull request #3056 from 9rnsr/fix11844 Issue 11844 - ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit)
Comment #3 by k.hara.pg — 2014-01-07T02:23:00Z
This was a regression issue from 2.064.
Comment #4 by github-bugzilla — 2014-01-07T02:32:56Z
Commit pushed to 2.065 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d554ec7532bd8fc1f35efdc05df22096501dea6a Merge pull request #3056 from 9rnsr/fix11844 Issue 11844 - ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit)