[phobos] std.complex doesn't pass unittest

Walter Bright walter at digitalmars.com
Mon May 24 15:01:01 PDT 2010


See the changes needed for std.math here:

    http://d.puremagic.com/issues/show_bug.cgi?id=4220

I didn't check them in because I'm having more problems with svn.

Andrei Alexandrescu wrote:
> Thanks for your assistance! I did so and got the "asm in @safe 
> function" error for tan() so I made that @trusted.
>
> After this I'm seeing:
>
> Testing generated/posix/debug/unittest/std/algorithm
> generated/posix/debug/libphobos2.a(math_3f7_174.o): In function 
> `_D3std4math4log2FNaNbeZe':
> /home/andrei/code/dmd/phobos/std/atomics.d:36: undefined reference to 
> `_D3std4math4yl2xFNaNbeeZe'
>
> The build is clean. The missing functions seem to be log2() and yl2x().
>
>
> Andrei
>
> On 05/24/2010 03:07 PM, Don Clugston wrote:
>> On 24 May 2010 19:51, Andrei Alexandrescu<andrei at erdani.com>  wrote:
>>> Did that and hit another one:
>>>
>>> std/math.d(1611): Error: sqrt cannot be interpreted at compile time, 
>>> because
>>> it has no available source code
>>>
>>> Has this happen to you guys? I'm on the latest and greatest of 
>>> everything.
>>> If I were any newer, I'd be from the future.
>>
>> Tracked this down -- as a result of svn 499, you need to add @safe to
>> sin cos tan sqrt and fabs in std.math.
>>
>>
>>>
>>>
>>> Andrei
>>>
>>> On 05/23/2010 05:51 PM, Shin Fujishiro wrote:
>>>>
>>>> Andrei Alexandrescu<andrei at erdani.com>    wrote:
>>>>>
>>>>> I must be missing something. I updated dmd to 2.046, updated druntime
>>>>> and phobos, and am trying make unittest on Linux.
>>>>>
>>>>
>>>> Update dmd to svn trunk. Phobos r1532 or after needs dmd r488 
>>>> (>2.046).
>>>>
>>>> Shin
>>>> _______________________________________________
>>>> phobos mailing list
>>>> phobos at puremagic.com
>>>> http://lists.puremagic.com/mailman/listinfo/phobos
>>>
>>> _______________________________________________
>>> phobos mailing list
>>> phobos at puremagic.com
>>> http://lists.puremagic.com/mailman/listinfo/phobos
>>>
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>
>


More information about the phobos mailing list