[Issue 14969] cannot evaluate atan at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 23 05:40:04 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=14969

mw <mingwu at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mingwu at gmail.com

--- Comment #1 from mw <mingwu at gmail.com> ---
I hit this problem today.

dmd2/linux/bin64/../../src/phobos/std/math.d(5288,22): Error: asm statements
cannot be interpreted at compile time
source/money.d(716,21):        called from here: lrint(x)
source/money.d(87,31):        called from here: round(cast(real)(x *
cast(double)pow10(4)), cast(roundingMode)2)
source/money.d(87,25):        called from here: to(round(cast(real)(x *
cast(double)pow10(4)), cast(roundingMode)2))


And found previous discussion and solution here:

https://forum.dlang.org/post/jtlhocbfcignwhbntgrv@forum.dlang.org


Not sure if this bug can be fixed.

$ dmd --version
DMD64 D Compiler v2.092.0
Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved
written by Walter Bright

on  x86_64 GNU/Linux

--


More information about the Digitalmars-d-bugs mailing list