digitalmars.D.bugs - Missing base class ctor causes compiler segfault.
- Dave <Dave_member pathlink.com> Feb 05 2005
dmd v0.111 (Windows and Linux).
class X
{
int i = 10;
// this(int val) { i = val; } // When this is commented out..
}
class Y : X
{
this()
{
super(20); // ..this causes a compiler segfault after error message
}
}
void main()
{
Y y = new Y;
}
Feb 05 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave schrieb am Sat, 5 Feb 2005 17:59:59 +0000 (UTC):dmd v0.111 (Windows and Linux). class X { int i = 10; // this(int val) { i = val; } // When this is commented out.. } class Y : X { this() { super(20); // ..this causes a compiler segfault after error message } } void main() { Y y = new Y; }
This is a known bug: http://dstress.kuehne.cn/run/super_07.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCBUxk3w+/yD4P9tIRAjDuAJ4uhb87LBbWHgSpGKb++dGNl0dx7wCdE9pQ EJDf4hVGGuSJG23glM4AeSY= =BMmk -----END PGP SIGNATURE-----
Feb 05 2005








Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn>