<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Testing generated/osx/debug/unittest/std/bigint<br>
6543a5a6edcba987<br>
<a class="moz-txt-link-abbreviated" href="mailto:core.exception.AssertError@std.bigint">core.exception.AssertError@std.bigint</a>(483): unittest failure<br>
----------------<br>
5 bigint 0x0000a908 onAssertErrorMsg + 68<br>
6 bigint 0x0000a94a onUnittestErrorMsg +
26<br>
7 bigint 0x00011f89 _d_unittestm + 45<br>
8 bigint 0x00001ec3 void
std.bigint.__unittest_fa<br>
il(int) + 35<br>
9 bigint 0x0000272d void
std.bigint.__unittest1()<br>
+ 833<br>
10 bigint 0x00001e4b void
std.bigint.__modtest() +<br>
11<br>
11 bigint 0x0000ad15 extern (C) bool
core.runtime.<br>
runModuleUnitTests() + 45<br>
12 bigint 0x00005b37
D6object10ModuleInfo7opApplyF<br>
MDFKPS6object10ModuleInfoZiZi + 71<br>
13 bigint 0x0000ac06 runModuleUnitTests +
134<br>
14 bigint 0x000122f2 extern (C) int
rt.dmain2.main<br>
(int, char**) + 38<br>
15 bigint 0x000121f6 extern (C) int
rt.dmain2.main<br>
(int, char**) + 42<br>
16 bigint 0x00012183 main + 179<br>
17 bigint 0x00001e2d start + 53<br>
make[2]: *** [generated/osx/debug/unittest/std/bigint] Error 1<br>
make[1]: *** [unittest] Error 2<br>
make: *** [unittest] Error 2</tt><br>
<br>
Don Clugston wrote:
<blockquote
cite="mid:AANLkTim8QbLrX6ajq2y0F44heGhip6Wi+fBHS6FME+HX@mail.gmail.com"
type="cite">
<pre wrap="">On 25 October 2010 09:45, Walter Bright <a class="moz-txt-link-rfc2396E" href="mailto:walter@digitalmars.com"><walter@digitalmars.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
dsource.org wrote:
</pre>
<blockquote type="cite">
<pre wrap="">phobos commit, revision 2116
user: Don Clugston
msg:
Fix for BigInt assign for 64 bit compilers. Also a few steps towards const
correctness, and some comment fixes.
<a class="moz-txt-link-freetext" href="http://www.dsource.org/projects/phobos/changeset/2116">http://www.dsource.org/projects/phobos/changeset/2116</a>
</pre>
</blockquote>
<pre wrap="">Still dies (OSX only):
<a class="moz-txt-link-abbreviated" href="mailto:core.exception.AssertError@std.bigint">core.exception.AssertError@std.bigint</a>(481): unittest failure
</pre>
</blockquote>
<pre wrap=""><!---->
Please add this line at 481, and tell me what it prints.
assert(BigInt(0x1234_5678_9ABC_5A5AL).ulongLength == 1);
+ printf("%Lx%Lx\n", BigInt(0x1234_5678_9ABC_5A5AL).data.peekUlong(0));
assert(BigInt(0x1234_5678_9ABC_5A5AL).toLong() == 0x1234_5678_9ABC_5A5AL);
obviously adding
import core.stdc.stdio;
It's looking to me as though have a long-related codegen bug.
_______________________________________________
phobos mailing list
<a class="moz-txt-link-abbreviated" href="mailto:phobos@puremagic.com">phobos@puremagic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/phobos">http://lists.puremagic.com/mailman/listinfo/phobos</a>
</pre>
</blockquote>
</body>
</html>