Bug 4752 – fail_compilation/fail345.d asserts in expression.c
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-08-29T01:26:00Z
Last change time
2010-08-30T11:41:39Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
braddr
Comments
Comment #0 by braddr — 2010-08-29T01:26:57Z
dmd: expression.c:816: void expToCBuffer(OutBuffer*, HdrGenState*, Expression*, PREC): Assertion `precedence[e->op] != PREC_zero' failed.
To run the test:
make test_results/fail_compilation/fail345.d.out
The code in the test:
// 3775
struct Bug3775 {
static int byLine()() { return 1; }
}
static assert( cast(int) Bug3775.byLine);
This test came from bug 3775 comment 2. The failure mode is new.