www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - dmd v0.92 crash

reply Regan Heath <regan netwin.co.nz> writes:
--[test2.d]--
module test2;

interface HashImpl(D) {
}

class Sha1 : HashImpl {
}

d:\d\src\build>dmd test2.d
test2.d(6): template HashImpl(D) is used as a type
test2.d(6): class Sha1 base type must be class or interface, not void
test2.d(6): class Sha1 'void' must be an interface
<crash>

Regan.

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jun 22 2004
parent Regan Heath <regan netwin.co.nz> writes:
Another one, possibly related:

--[test2.d]--
module test2;

interface A {
}
struct B {
}
class C : B,A {
}

D:\D\src\build>dmd test2.d
test2.d(7): class C base type must be class or interface, not B
test2.d(7): class C 'B' must be an interface
<crash>

On Wed, 23 Jun 2004 11:13:19 +1200, Regan Heath <regan netwin.co.nz> wrote:

 --[test2.d]--
 module test2;

 interface HashImpl(D) {
 }

 class Sha1 : HashImpl {
 }

 d:\d\src\build>dmd test2.d
 test2.d(6): template HashImpl(D) is used as a type
 test2.d(6): class Sha1 base type must be class or interface, not void
 test2.d(6): class Sha1 'void' must be an interface
 <crash>

 Regan.
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jun 22 2004