← Back to index
|
Original Bugzilla link
Bug 12902 – [ICE] Assertion failure '!ae->lengthVar' in 'expression.c' when using `opDollar`
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-13T06:49:00Z
Last change time
2014-06-15T20:43:18Z
Keywords
ice, pull
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0
by verylonglogin.reg — 2014-06-13T06:49:39Z
This code ICEs the compiler: --- struct S { void opDollar() { } void opIndex() { } void opIndexAssign() { } void opSliceAssign() { } } void main() { S s; s[] = s[$]; } --- Assertion failure: '!ae->lengthVar' on line 13938 in file 'expression.c' ---
Comment #1
by verylonglogin.reg — 2014-06-13T07:33:08Z
Probably wrong-code regression Issue 12904 has the same root.
Comment #2
by k.hara.pg — 2014-06-14T15:06:26Z
https://github.com/D-Programming-Language/dmd/pull/3668
Comment #3
by github-bugzilla — 2014-06-15T20:43:15Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/51400f76211964caece3d976f9cffae92f831a25
fix Issue 12902 - [ICE] Assertion failure '!ae->lengthVar' in 'expression.c' when using `opDollar`
https://github.com/D-Programming-Language/dmd/commit/493250daf44afcfdca5c842aa2ceebeb0d049a6c
Merge pull request #3668 from 9rnsr/fix12902 Issue 12902 & 10904 - fix ICEs with opDollar and multidimensional operator overloading