www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - dmd 0.102 crash (spooky)

reply Bastiaan Veelo <Bastiaan.N.Veelo ntnu.no> writes:
Hi,

show the exact following code to dmd 0.102 on Linux and it drops dead 
instantly. Believe it or not. (Have not tried <0.102.) Swap the 
definition of Foo(T1) and Bar and it works fine.


class Foo()
{
}

class Bar : Foo!()
{
}

class Foo(T1)
{
}

void main()
{
}


Bastiaan.
Sep 23 2004
parent reply clayasaurus <clayasaurus gmail.com> writes:
on my linux machine (Mepis linux) I just get a segfault :)

Bastiaan Veelo wrote:
 Hi,
 
 show the exact following code to dmd 0.102 on Linux and it drops dead 
 instantly. Believe it or not. (Have not tried <0.102.) Swap the 
 definition of Foo(T1) and Bar and it works fine.
 
 
 class Foo()
 {
 }
 
 class Bar : Foo!()
 {
 }
 
 class Foo(T1)
 {
 }
 
 void main()
 {
 }
 
 
 Bastiaan.
Sep 24 2004
parent reply Bastiaan Veelo <Bastiaan.N.Veelo ntnu.no> writes:
clayasaurus wrote:
 on my linux machine (Mepis linux) I just get a segfault :)
:-) That is what I mean. But it seems to happen very early (during lexical analysis?) because it is not preceded by an error message and changing the order of definitions has a say. How is Windows doing in this regard? Bastiaan.
Sep 25 2004
parent Tyro <ridimz_at yahoo.dot.com> writes:
Bastiaan Veelo wrote:
 clayasaurus wrote:
 
 on my linux machine (Mepis linux) I just get a segfault :)
:-) That is what I mean. But it seems to happen very early (during lexical analysis?) because it is not preceded by an error message and changing the order of definitions has a say. How is Windows doing in this regard?
No better. Results in GPF on WinXP.
 Bastiaan.
Sep 25 2004