Bug 12304 – `TypeInfo_AC` sometimes is called for array of interfaces

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-06T03:47:25Z
Last change time
2024-12-13T18:17:50Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Denis Shelomovskii
Moved to GitHub: dmd#17644 →

Comments

Comment #0 by verylonglogin.reg — 2014-03-06T03:47:25Z
`TypeInfo_AC` is a `TypeInfo` sometimes (see Issue 12303) used for arrays of classes or interfaces. But it isn't designed to work with interfaces, so we have wrong code e.g. here: --- interface I { } class C: I { } void main() { I[] a = [new C]; int[I[]] aa = [a : 0]; assert(a in aa); // fails } ---
Comment #1 by robert.schadek — 2024-12-13T18:17:50Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17644 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB