Bug 4914 – Assertion failure: 'pr != PREC_zero' on line 817 in file 'expression.c'
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-09-22T02:12:00Z
Last change time
2010-10-07T07:26:31Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
ah08010-d
Comments
Comment #0 by ah08010-d — 2010-09-22T02:12:33Z
This code generates the failure. I tried moving the method out of the class to a function, but the problem went away - there may be an intermediate level of complexity that I passed by.
class Foo {
int[string] builders;
bool remove() {
return builders.remove( "" );
}
}
I get:
Assertion failure: 'pr != PREC_zero' on line 817 in file 'expression.c'
Comment #1 by clugdbug — 2010-10-07T07:26:31Z
*** This issue has been marked as a duplicate of issue 4926 ***