MSVC: fix for failing tests due to strtod+hexadecimal literals

Johan Engelen via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Mar 2 10:49:40 PST 2015


On Monday, 2 March 2015 at 07:17:37 UTC, Kai Nacke wrote:
> Hi Johan!
>
> On Sunday, 1 March 2015 at 21:00:53 UTC, Johan Engelen wrote:
>> Is this a desired fix? (i.e. trying to make a better build 
>> with MSVC while we wait for the new version)
>
> Not really. It fixes building std.math but fails with any user 
> application.
>
> What about implement a hex value parsing function which is 
> invoked if the result is 0?

dmd has a strold for compilers that do not support hex floats:
https://github.com/D-Programming-Language/dmd/blob/master/src/backend/strtold.c

Or do you think that is overkill and we are better off 
implementing our own hex parser?



More information about the digitalmars-d-ldc mailing list