winsamp.d and -O

. bitworld at qq.com
Tue Jun 14 05:18:13 PDT 2011


The winsamp.d is distributed with DMD.  It's OK when being built like this:
   dmd winsamp gdi32.lib winsamp.def

However, running this:
   dmd -O winsamp gdi32.lib winsamp.def
will issue a error message:
   winsamp.d(35): Error: null dereference in function WindowProc

Check it, you will get this:
*(cast(int*) null) = 666;

Before firing a bug, I want to make sure about it.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110614/6044ad45/attachment.html>


More information about the Digitalmars-d mailing list