Thread overview
[Issue 18119] Allow code that may allocated inside __ctfe condition branches in @nogc functions
Dec 24, 2017
Iain Buclaw
Dec 24, 2017
Ketmar Dark
Mar 25, 2022
Dlang Bot
Dec 17, 2022
Iain Buclaw
December 24, 2017
https://issues.dlang.org/show_bug.cgi?id=18119

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
The suggestion was to make the following condition statements as specializations.

if (__ctfe) { }
if (!__ctfe) { }

Then, anything in the __ctfe branch that can be evaluated at compile time but would otherwise cause a GC allocation at runtime would be permissible in @nogc functions.

--
December 24, 2017
https://issues.dlang.org/show_bug.cgi?id=18119

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--
June 16, 2020
https://issues.dlang.org/show_bug.cgi?id=18119

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com

--
March 25, 2022
https://issues.dlang.org/show_bug.cgi?id=18119

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw updated dlang/dmd pull request #7509 "Fix Issue 18119 - Mark if(__ctfe) blocks as SCOPEctfe" fixing this issue:

- Fix Issue 18119 - Mark if(__ctfe) blocks as SCOPEctfe

https://github.com/dlang/dmd/pull/7509

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18119

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=18119

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19354

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--