www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D 2.066.1: Assertion failure: '0' on line 2022 in file 'mtype.c'

reply "Andre" <andre s-e-a-p.de> writes:
Hi,

after the update from 2.066 to 2.066.1
DMD gives following output:

Assertion failure: '0' on line 2022 in file 'mtype.c'
abnormal program termination

Unfortunatelly I do not know how to create a reproducible
example as the error occurs in a huge application.

DMD doesn't give me more information. I try to find out more
(reproducible example).

Kind regards
André
Nov 09 2014
next sibling parent Jonathan M Davis via Digitalmars-d <digitalmars-d puremagic.com> writes:
On Monday, November 10, 2014 04:14:43 Andre via Digitalmars-d wrote:
 Unfortunatelly I do not know how to create a reproducible
 example as the error occurs in a huge application.

 DMD doesn't give me more information. I try to find out more
 (reproducible example).
Dustmite is your friend: https://github.com/CyberShadow/DustMite/wiki - Jonathan M Davis
Nov 09 2014
prev sibling parent reply "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"Andre"  wrote in message news:qaknrsxlgbgzkhljvflj forum.dlang.org...

 Hi,

 after the update from 2.066 to 2.066.1
 DMD gives following output:

 Assertion failure: '0' on line 2022 in file 'mtype.c'
 abnormal program termination

 Unfortunatelly I do not know how to create a reproducible
 example as the error occurs in a huge application.

 DMD doesn't give me more information. I try to find out more
 (reproducible example).

 Kind regards
 André
Based on the location of the error, I'd guess it's to do with passing a delegate to a templated function / as a template argument. (but it's possible it's not a delegate) To find the error: - Run dmd with '-v', it should tell you which function it was compiling when it crashed (the last one it lists). Once you know the function it should be easier to determine which bit of code causes the crash. - Or use dustmite to reduce the test case.
Nov 10 2014
parent reply "Andre" <andre s-e-a-p.de> writes:
I will create a issue for this. The minimized version is:

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");
}

Kind regards
André


On Monday, 10 November 2014 at 12:34:11 UTC, Daniel Murphy wrote:
 "Andre"  wrote in message 
 news:qaknrsxlgbgzkhljvflj forum.dlang.org...


 Based on the location of the error, I'd guess it's to do with 
 passing a delegate to a templated function / as a template 
 argument. (but it's possible it's not a delegate)

 To find the error:
 - Run dmd with '-v', it should tell you which function it was 
 compiling when it crashed (the last one it lists).  Once you 
 know the function it should be easier to determine which bit of 
 code causes the crash.
 - Or use dustmite to reduce the test case.
Nov 10 2014
parent "Dicebot" <public dicebot.lv> writes:
For the reference https://issues.dlang.org/show_bug.cgi?id=13714
Nov 11 2014