Thread overview
[Issue 22661] Functions cannot be interpreted while being compiled
Jan 10, 2022
anonymous4
Jan 10, 2022
Tim
Dec 17, 2022
Iain Buclaw
January 10, 2022
https://issues.dlang.org/show_bug.cgi?id=22661

--- Comment #1 from anonymous4 <dfj1esp02@sneakemail.com> ---
Whoa, can this compile even in theory? Four modules import each other and you have a circular dependency between declaration stage and semantic stage.

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

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg

--- Comment #2 from moonlightsentinel@disroot.org ---
This example compiles just fine with current dmd, see https://run.dlang.io/is/9koFtR.

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

--- Comment #3 from Tim <tim.dlang@t-online.de> ---
I can see the error on run.dlang.io, too, after adding the filename as an argument: https://run.dlang.io/is/QmWZ9j

The error seems to depend on the order of files on the dmd command line.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

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

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

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

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

--