February 05, 2005 Missing base class ctor causes compiler segfault. | ||||
---|---|---|---|---|
| ||||
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; } |
February 05, 2005 Re: Missing base class ctor causes compiler segfault. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dave | -----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----- |
Copyright © 1999-2021 by the D Language Foundation