Bug 11477 – [AA] `T*` as associative array key becomes `const(T)*`

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-08T22:55:06Z
Last change time
2024-12-13T18:13:49Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Denis Shelomovskii
Moved to GitHub: dmd#17624 →

Comments

Comment #0 by verylonglogin.reg — 2013-11-08T22:55:06Z
--- void main() { int[int*] aa; int* k0 = aa.keys[0]; // Error: cannot implicitly convert ... of type const(int)* to int* foreach(int* k, int v; aa) // Error: foreach: index must be type const(int)*, not int* { } } ---
Comment #1 by robert.schadek — 2024-12-13T18:13:49Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17624 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB