[Mono-list] a funny bug ;-)
Adam Treat
manyoso@yahoo.com
Fri, 12 Apr 2002 19:18:18 -0700
Ok, so here is a self referencing bug for everyone ;-)
Not sure if a compiler warning is applicable, but this does compile with mcs
_and_ csc. When run with mint/mono it results in a segfault. I haven't
tried to run it with the .Net runtime though.
Enjoy,
Adam
using System;
public class GNU {
public GNU () : this (new GNU()) {}
public GNU (GNU gnu) : this (gnu, new IsNot()) {}
public GNU (GNU gnu, IsNot isnot) : this (gnu, isnot, new Unix()) {}
public GNU (GNU gnu, IsNot isnot, Unix unix) {}
public static void Main(string[] args)
{
GNU gnu = new GNU();
}
}
public class IsNot {
}
public class Unix {
}