Thread overview
[Issue 14969] cannot evaluate atan at compile time
Sep 01, 2015
Vladimir Panteleev
Jun 28, 2018
Guillaume Lathoud
May 23, 2020
mw
Oct 10, 2022
RazvanN
August 27, 2015
https://issues.dlang.org/show_bug.cgi?id=14969

yosikawa@altalk.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yosikawa@altalk.com

--
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14969

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE
                 CC|                            |thecybershadow@gmail.com

--
June 28, 2018
https://issues.dlang.org/show_bug.cgi?id=14969

Guillaume Lathoud <gsub@glat.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gsub@glat.info

--
May 23, 2020
https://issues.dlang.org/show_bug.cgi?id=14969

mw <mingwu@gmail.com> changed:

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

--- Comment #1 from mw <mingwu@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

--
October 10, 2022
https://issues.dlang.org/show_bug.cgi?id=14969

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |FIXED

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
I cannot reproduce this. This seems to have been fixed.

--