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: [email protected]
Reporter: [email protected]
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.
--