www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23414] New: Import order emits "Error: no size because of


          Issue ID: 23414
           Summary: Import order emits "Error: no size because of forward
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

ldc2 1.30.0-beta1 which is dmd v2.100.0. Windows MSVC 64bit.

Depending on import order I am getting a lot of: "Error: no size because of
forward references".


import sidero.base.text.unicode.builder;
import sidero.base.text.unicode.readonly;


import sidero.base.text.unicode.readonly;
import sidero.base.text.unicode.builder;

Both modules in question import each other but neither depends on the other for
their size of any type (but are used for method parameters).


I am using a lot of scope and scope + ref in parameters, so this could be
related to https://issues.dlang.org/show_bug.cgi?id=21667

Oct 14 2022