www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15194] New: ICE for identical overloaded functions with

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 puremagic.com
          Reporter: timon.gehr 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.

--
Oct 12 2015