www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20913] New: Array "forward reference" error

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

          Issue ID: 20913
           Summary: Array "forward reference" error
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: puneet coverify.org

Compiling the following code gives me:

Error: unable to determine fields of `Foo` because of forward references


import std.container: Array;

struct Foo { Array!Bar _barA; }
struct Bar { Frop _frop; }
class Frop { Array!Foo _foos; }

--
Jun 09