dmd 1.048 and 2.033 releases

Denis Koroskin 2korden at gmail.com
Mon Oct 5 03:59:35 PDT 2009


On Mon, 05 Oct 2009 14:23:26 +0400, Nick Sabalausky <a at a.a> wrote:

> "Walter Bright" <newshound1 at digitalmars.com> wrote in message
> news:hac8nb$26j6$1 at digitalmars.com...
>> Another OSX 10.5 release :-)
>>
>> Anyhow, this should work with gdb now, and has contract inheritance
>> (finally).
>>
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.048.zip
>>
>>
>> http://www.digitalmars.com/d/2.0/changelog.html
>> http://ftp.digitalmars.com/dmd.2.033.zip
>>
>> Many thanks to the numerous people who contributed to this update.
>
> "Compiler now detects some cases of illegal null dereferencing when  
> compiled
> with -O"
>
> A bug-detection feature that's turned on with -O? I assume that's just a
> temporary situation and is related to either it currently being detected  
> by
> the optimizer and the feature maybe being in a "trial" phase? Or maybe  
> just
> a typo? ;)
>
>

No, it's not:

void main() {
     Object o;
     o.toString();
}

# dmd test.d // fine
# dmd test.d -O // test.d(4): Error: null dereference in function _Dmain  
(mangled name, is it done on purpose?)

Nice start, anyway, I'm looking forward to having a complete code flow  
analysis soon :)


More information about the Digitalmars-d-announce mailing list