Bug 5087 – Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file 'expression.c'

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-10-20T10:31:00Z
Last change time
2010-10-20T11:55:39Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
sandford

Comments

Comment #0 by sandford — 2010-10-20T10:31:40Z
Using DMD 2.049, using the msg pragma on a template tuple instantiated from a template function results in an ICE.: Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file 'expression.c' Test code: T foo(T)(T t) { return t; } template map(fun...) { pragma(msg,fun); enum map = 5; } void main() { map!foo; return; }
Comment #1 by clugdbug — 2010-10-20T11:55:39Z
This has already been fixed in svn. *** This issue has been marked as a duplicate of issue 4926 ***