Release build headache: -inline

Tom tom at nospam.com
Sat Mar 5 15:37:15 PST 2011


I have some kind of a middle-size project written in D2. I've been 
compiling always with -debug -unittest switches and, despite having to 
workaround two or three bugs since the beginning, I could always build 
everything. Now I'm ready to give release build a try, so I go with -O 
-release -noboundscheck -inline and get:

E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): expression 
expected, not 'EOF'
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when exp ecting ']'
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ')' following template argument list
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ']'
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ')' following template argument list
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ']'
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ')' following template argument list
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ']'
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ')' following template argument list
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ']'
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): found 'EOF' 
when expecting ')' following template argument list
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): no 
identifier for declarator 
Identity!(field[Identity!(field[Identity!(field[Identity!(field[Identity!(field[0])])])])])
E:\d\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(364): semicolon 
expected, not 'EOF'

If I remove -inline, it compiles, but I need performance and to track 
this DMD bug at this point is too damn hard. Any suggestions? :'(

Sometimes I have sinful thoughts and I regret having done this in D... 
But now is too late.

Thanks in advance,
Tom;


More information about the Digitalmars-d-learn mailing list