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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 5 04:42:51 PST 2010


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



--- Comment #3 from Leandro Motta Barros <lmb at stackedboxes.org> 2010-02-05 04:42:50 PST ---
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".


(That said, this code:

void main()
{    
    int AssociativeArray;        
    int[int] foo;    
    foreach (x; foo)    {    }
}

which I took from issue 3552, compiles cleanly here, which seems to indicate
that I am *really* running DMD 2.040 here ;-))

-- 
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