The effect of the command line switches can be seen in this reduced test case:
----------test0.d
import test1;
void main()
{
book();
}
--------test1.d
void book()
{
undefined;
}
--------------------------------
It only generates the error about "undefined" if you compile with
-noboundscheck -release -inline.
That's actually not a bug.
I believe that in the test case, the 'undefined variable' error is
suppressed because of bug 4269 "Regression(2.031) invalid type
accepted if evaluated while errors are gagged".
But I'm not sure where the error in Phobos is, which is being suppressed.
On 17 December 2010 01:22, Don Clugston <[email protected]> wrote:
> On 17 December 2010 01:02, Stephan Dilly <[email protected]> wrote:
>> i don't know why but it still does not build with the same errors here.
>> maybe a win32 only issue ? can someone reproduce this under windows ? it
>> happens in almost all my projects when trying to build with these
>> parameters.
>
> Confirmed, fails on Win32,
>
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta