[Issue 6744] Missing AA symbol with enum

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 23 17:04:09 PDT 2011


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



--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-10-23 17:03:03 PDT ---
Well, I'm definitely confused. I finally managed to reduce my code to a
reasonably test case, but I can't find a version of the compiler where it
worked. So, I don't know what happened. My test case is pretty similar to
Kenji's though, so I expect that it's the same bug.

a.d
---
import b;

void main()
{
}

b.d
---
import std.exception;

enum E {a, b, c}
immutable int[E] aa;

shared static this()
{
    int[E] temp;
    temp[E.a] = 1;
    temp[E.b] = 2;
    temp[E.c] = 3;
    aa = assumeUnique(temp);
}


a.o: In function
`_D6object30__T16AssociativeArrayTE1b1ETiZ16AssociativeArray6rehashMFNdZHE1b1Ei':
b.d:(.text._D6object30__T16AssociativeArrayTE1b1ETiZ16AssociativeArray6rehashMFNdZHE1b1Ei+0x37):
undefined reference to `_D16TypeInfo_HE1b1Ei6__initZ'
a.o: In function
`_D6object31__T16AssociativeArrayTE1b1ETyiZ16AssociativeArray6rehashMFNdZHE1b1Eyi':
b.d:(.text._D6object31__T16AssociativeArrayTE1b1ETyiZ16AssociativeArray6rehashMFNdZHE1b1Eyi+0x37):
undefined reference to `_D17TypeInfo_HE1b1Eyi6__initZ'
collect2: ld returned 1 exit status
--- errorlevel 1

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