← Back to index
|
Original Bugzilla link
Bug 13835 – ICE in interpret.c:736 - Issue with static variables.
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-12-08T18:12:00Z
Last change time
2015-02-18T03:40:55Z
Keywords
ice, pull
Assigned to
nobody
Creator
dev
Comments
Comment #0
by dev — 2014-12-08T18:12:11Z
class Foo(T) { private T* _data; final private void siftUp(int position) nothrow { static T crash = *(this._data + position); } } void main(string[] args) { auto heap = new Foo!(int); } Compiler output: rdmd --force -de -debug -w test.d dmd: interpret.c:736: Expression* ctfeInterpret(Expression*): Assertion `global.errors != olderrors' failed. Failed: ["dmd", "-de", "-debug", "-w", "-v", "-o-", "test.d", "-I."] Remove the static keyword and it compiles fine.
Comment #1
by dev — 2014-12-08T18:14:11Z
Above was using DMD64 D Compiler v2.066.1 on Ubuntu 14.04
Comment #2
by k.hara.pg — 2014-12-09T07:59:00Z
https://github.com/D-Programming-Language/dmd/pull/4203
Comment #3
by github-bugzilla — 2014-12-09T08:32:39Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/becd62f2b25f5b1aed27c10e82276c0335868a77
fix Issue 13835 - ICE in interpret.c:736 - Issue with static variables
https://github.com/D-Programming-Language/dmd/commit/16fcb2d4bb3e405e7888ff2f48f173410d5dbf75
Merge pull request #4203 from 9rnsr/fix13835 Issue 13835 - ICE in interpret.c:736 - Issue with static variables
Comment #4
by github-bugzilla — 2015-02-18T03:40:55Z
Commits pushed to 2.067 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/becd62f2b25f5b1aed27c10e82276c0335868a77
fix Issue 13835 - ICE in interpret.c:736 - Issue with static variables
https://github.com/D-Programming-Language/dmd/commit/16fcb2d4bb3e405e7888ff2f48f173410d5dbf75
Merge pull request #4203 from 9rnsr/fix13835