[Issue 15194] New: ICE for identical overloaded functions with ref-return and local struct

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 12 03:52:00 PDT 2015


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

          Issue ID: 15194
           Summary: ICE for identical overloaded functions with ref-return
                    and local struct
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: timon.gehr at gmx.ch

ref void foo(){ struct S{} }
ref void foo(){ struct S{} }

With DMD 2.068.2:
dmd: struct.c:936: virtual void StructDeclaration::semantic(Scope*): Assertion
`type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed.

--


More information about the Digitalmars-d-bugs mailing list