www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DMD 0.119 compiler crash

reply Niko Korhonen <niktheblak hotmail.com> writes:
Trying to compile the following program causes the DMD 0.119 compiler to 
crash (no error message) when using the -unittest switch.

Works with "-debug -unittest" but fails with only "-unittest".

<code>
import std.stream;

unittest
{
	try
	{
		throw new Exception("");
	}
	catch
	{
		debug stderr.writeLine("Exception thrown");
	}
}
</code>
Mar 29 2005
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Niko Korhonen wrote:

 Trying to compile the following program causes the DMD 0.119 compiler to 
 crash (no error message) when using the -unittest switch.
<snip code> The bug doesn't depend on unittest. It happens whenever a catch block consists of a single debug or version statement, as long as the debug/version block is versioned out but the surrounding code isn't. http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/3288 Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on on the 'group where everyone may benefit.
Mar 31 2005