www.digitalmars.com         C & C++   DMDScript  

D - Strange Bug

reply Stephan Wienczny <wienczny web.de> writes:
Hallo Walter,

I'm sorry but It seems I found a bug in your compiler.

If I try to compile

class DataType : object
{
	dchar[] name;
}

using the 0.79 linux version of dmd it sigsevs.

It compiles if I don't give a base class.
Jan 28 2004
parent J C Calvarese <jcc7 cox.net> writes:
Stephan Wienczny wrote:
 Hallo Walter,
 
 I'm sorry but It seems I found a bug in your compiler.
 
 If I try to compile
 
 class DataType : object
 {
     dchar[] name;
 }
 
 using the 0.79 linux version of dmd it sigsevs.
 
 It compiles if I don't give a base class. 

This bug occurs in WindowsXP, too. This code brings up the "dmd.exe has encountered a problem and needs to close." window: class DataType : object { dchar[] name; } void main() { } Change the first line to this and it seems to work fine: class DataType : Object So does this as the first line: class DataType -- Justin http://jcc_7.tripod.com/d/
Jan 28 2004