[Issue 23404] CTFE evaluation is unecessary when passing function return type as aliased template argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 11 05:20:51 UTC 2022


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

ag0aep6g <ag0aep6g at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ag0aep6g at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
You're not passing `foo`'s return *type* to `weird`. You're trying to pass its
return *value*. For that, the function must go through CTFE.

As far as I can see, there is no bug here. Closing as invalid.

--


More information about the Digitalmars-d-bugs mailing list