Thread overview
[Issue 9181] Forward reference error in struct static fields
Dec 05, 2017
Basile B.
Apr 04, 2019
Basile-z
Jul 19, 2019
Basile-z
Mar 21, 2020
Basile-z
Dec 17, 2022
Iain Buclaw
December 05, 2017
https://issues.dlang.org/show_bug.cgi?id=9181

Basile B. <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com
           Hardware|x86                         |All
                 OS|Windows                     |All

--
April 04, 2019
https://issues.dlang.org/show_bug.cgi?id=9181

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
Funnily this alternative, which still needs inference for the array, works

---
struct Foo {
    static immutable foos1 = [F];
    static immutable F = Foo();
}
---

Because type semantic of `F` is launched when doing the one of `foo1`, hence `F` is not already "inuse".

--
July 19, 2019
https://issues.dlang.org/show_bug.cgi?id=9181

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |340


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=340
[Issue 340] [Tracker] Forward reference bugs and other order-of-declaration
issues
--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=9181

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--