3645 – manifest constant (enum) crashes dmd

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3645 - manifest constant (enum) crashes dmd
Summary: manifest constant (enum) crashes dmd
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: 2009年12月24日 05:30 UTC by Stephan Dilly
Modified: 2015年06月09日 01:27 UTC (History)
3 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 Stephan Dilly 2009年12月24日 05:30:11 UTC
version is 2.037 but it is not available in bugzilla.
[CODE]
import std.stdio;
struct Foo
{
	public int foo()
	{
		return 2;
	}
}
void main()
{
	Foo bar;
	enum bla = bar.foo(); //crash
}
[/CODE]
this enum declration gives no error or anything but crashes dmd (2.037) while compiling with no options set.
Comment 1 Stephan Dilly 2009年12月24日 05:33:56 UTC
ok investigated more and it turns out this bug is really a regression since dmd2036. with dmd2035 the code worked as expected and did not crash dmd.
Comment 2 Walter Bright 2009年12月24日 15:45:48 UTC
Changeset 310.
Comment 3 Leandro Lucarella 2009年12月25日 09:59:37 UTC
http://www.dsource.org/projects/dmd/changeset/310 
Comment 4 Walter Bright 2009年12月31日 11:18:08 UTC
Fixed dmd 1.054 and 2.038


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