www.digitalmars.com         C & C++   DMDScript  

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


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

struct Type {
  enum a = __traits(compiles, Type());
  static if (int(Type)) { }

Outputs: Error: unknown, please file report on issues.dlang.org on master of

< CyberShadow> Introduced in https://github.com/dlang/dmd/pull/2786 apparently
< CyberShadow> Before then it showed an appropriate error message

Feb 19 2021