4752 – fail_compilation/fail345.d asserts in expression.c

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4752 - fail_compilation/fail345.d asserts in expression.c
Summary: fail_compilation/fail345.d asserts in expression.c
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
Reported: 2010年08月29日 01:26 UTC by Brad Roberts
Modified: 2010年08月30日 11:41 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Brad Roberts 2010年08月29日 01:26:57 UTC
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.
Comment 1 Walter Bright 2010年08月30日 11:41:39 UTC
http://www.dsource.org/projects/dmd/changeset/651 


AltStyle によって変換されたページ (->オリジナル) /