[Issue 11591] `std.typecons.Tuple`-s with classes fails at runtime as associative array keys

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 24 01:33:10 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11591


Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|`const`/`immutable`         |`std.typecons.Tuple`-s with
                   |`std.typecons.Tuple`-s with |classes fails at runtime as
                   |classes fails at runtime as |associative array keys
                   |associative array keys      |


--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-11-24 13:33:08 MSK ---
Sorry, original comment is wrong. The regression is for unqualified tuples:
---
import std.typecons;

void main()
{
    alias T = Tuple!Object;
    int[T] aa; // No CT errors
    aa[T()] = 1;
    aa[T()] = 1; // Error at runtime
}
---

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list