unimplemented abstract function compiles.

Nicholas Wilson iamthewilsonator at hotmail.com
Sun Aug 12 01:06:40 UTC 2018


On Saturday, 11 August 2018 at 23:12:43 UTC, ag0aep6g wrote:
> On 08/11/2018 11:20 PM, rikki cattermole wrote:
>> On 12/08/2018 8:55 AM, Eric wrote:
>>> Code below compiles while I would not expect it to compile.
>>> Is there a reason that this compiles?
> [...]
>> No bug. You forgot to throw -unittest when you compiled.
> [...]
>> Error: program killed by signal 11
>
> If that's DMD segfaulting, that's definitely a bug.

its not

>/tmp/dmd_run2hTpLG(_D9onlineapp17__unittest_L14_C1FZv+0x3a)[0x55d9bba8fe6e]
>/tmp/dmd_run2hTpLG(_D9onlineapp9__modtestFZv+0x9)[0x55d9bba8fe81]

That is run.dlang.io running the resulting executable. (I know 
because I've looked a way too many dmd segfaults ;) )

> If that's not DMD segfaulting, you're running the program which 
> Eric expects not to compile. So there might be a bug (or Eric's 
> expectation is wrong).




More information about the Digitalmars-d-learn mailing list