Bug 15194 – ICE for identical overloaded functions with ref-return and local struct

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-12T10:52:00Z
Last change time
2020-03-21T03:56:41Z
Assigned to
No Owner
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2015-10-12T10:52:00Z
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.