www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21648] New: Speculative recursive reference to struct with

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

          Issue ID: 21648
           Summary: Speculative recursive reference to struct with
                    semantic error prints "error: unknown": Part 2
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

Very similar to https://issues.dlang.org/show_bug.cgi?id=21646

template bla() {
    semantics error;
}

struct Type {
    enum e = __traits(compiles, Type.init);
    static if (bla!()) { }
}

--
Feb 19