Strange behaviour with -profile

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Sun Feb 23 12:46:46 PST 2014


On Sunday, 23 February 2014 at 08:32:50 UTC, Danny Arends wrote:
> I have a medium sized project at: 
> https://github.com/DannyArends/DaNode
>
> it compiles fine with the normal build switches I used:
>
>    $ rdmd --build-only -O -gc -release -w danode/server.d
>
> if I compile with the -profile switch, I get a weird error:
>
>    $ rdmd --build-only -O -gc -release -profile -w 
> danode/server.d
>    "Warning: statement is not reachable"

I thought DMD provided an error if you tried to optimize with 
debug symbols.

-O should not be used with -gc, -g, or -profile

Maybe that will address the problem.


More information about the Digitalmars-d-learn mailing list