[Issue 3692] Compiler with associative arrays when std.variant is imported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 5 06:23:13 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3692



--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-02-05 06:23:12 PST ---
(In reply to comment #3)
> Just one additional detail:
> 
> In the program where I noticed this problem for the first time, as suggested by
> others, I worked around the bug by using a copy of std.variant.d with all the
> occurrences of "AssociativeArray" replaced with something else.
> 
> I tried going back to std.variant in my program, and the crash was still there.
> In other words, it seems that the bug still has something to do with
> identifiers named "AssociativeArray".

Yes. Reduced test case:
---------
import file2;

void main() {
   bool[int] a;
   auto x = a.keys[0];
}
-------
file2:
--------
int AssociativeArray;
------------------------------

Basically my patch fixed the specific case of bug 3552 but failed in the
general case.

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


More information about the Digitalmars-d-bugs mailing list