5975 – [2.053 beta][CTFE] ICE: 'global.errors' on line 1416 in file 'constfold.c'

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5975 - [2.053 beta][CTFE] ICE: 'global.errors' on line 1416 in file 'constfold.c'
Summary: [2.053 beta][CTFE] ICE: 'global.errors' on line 1416 in file 'constfold.c'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 regression
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
Reported: 2011年05月10日 02:51 UTC by Nick Sabalausky
Modified: 2015年06月09日 05:13 UTC (History)
1 user (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 Nick Sabalausky 2011年05月10日 02:51:56 UTC
int foo(wstring replace)
{
	wstring value = "";
	value ~= replace;
	return 1;
}
enum X = foo("X"w);
> dmd test.d
Assertion failure: 'global.errors' on line 1416 in file 'constfold.c'
abnormal program termination
Comment 1 Nick Sabalausky 2011年05月10日 02:54:21 UTC
Note, I got this with this version of DMD:
https://github.com/D-Programming-Language/dmd/commit/4055820a360ae56c5469678f280e374151c18c11
Compiled in release mode.


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