D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13714 - [REG2.066.1] Assertion failure: '0' on line 2022 in file 'mtype.c'
Summary: [REG2.066.1] Assertion failure: '0' on line 2022 in file 'mtype.c'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks:
 
Reported: 2014-11-11 15:08 UTC by Andre
Modified: 2015-02-18 03:39 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 Andre 2014-11-11 15:08:29 UTC
Following coding works with 2.066 but fails to compile with 2.066.1:
Assertion failure: '0' on line 2022 in file 'mtype.c' is raised during compiling.


enum DummyStringEnum
{
	foo = "bar"
}

class Test
{
	@property DummyStringEnum e()
	{
		return DummyStringEnum.foo;
	}
}
	
void main()
{
	import std.json;
	JSONValue[string] jsPayload;
	jsPayload["A"] = __traits(getMember, new Test(), "e");
}
Comment 2 github-bugzilla 2014-11-16 11:10:00 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b041ff5440722d3d09fac05deb3c718bfd183c51
fix Issue 13714 - Assertion failure: '0' on line 2022 in file 'mtype.c'

https://github.com/D-Programming-Language/dmd/commit/929df331066b2206b19b52d238862310eeff574b
Merge pull request #4146 from 9rnsr/fix13714

[REG2.066.1] Issue 13714 - Assertion failure: '0' on line 2022 in file 'mtype.c'
Comment 3 github-bugzilla 2015-02-18 03:39:38 UTC
Commits pushed to 2.067 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b041ff5440722d3d09fac05deb3c718bfd183c51
fix Issue 13714 - Assertion failure: '0' on line 2022 in file 'mtype.c'

https://github.com/D-Programming-Language/dmd/commit/929df331066b2206b19b52d238862310eeff574b
Merge pull request #4146 from 9rnsr/fix13714