D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5087 - Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file 'expression.c'
Summary: Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file 'expr...
Status: RESOLVED DUPLICATE of issue 4926
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2010-10-20 10:31 UTC by Rob Jacques
Modified: 2010-10-20 11:55 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Rob Jacques 2010-10-20 10:31:40 UTC
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 Don 2010-10-20 11:55:39 UTC
This has already been fixed in svn.

*** This issue has been marked as a duplicate of issue 4926 ***