[Issue 1240] New: linker complains about undefined references when using AAs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 18 11:42:23 PDT 2007


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

           Summary: linker complains about undefined references when using
                    AAs
           Product: D
           Version: 1.014
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: manuelk89 at gmx.net


When using AA-literals gcc complains about undefined references to
`_d_assocarrayliteralT'.

-- file: aaliteral.d ---------------

void main()
{
        int[int] aa;
        aa = [4:3, 7:2];
}

------------------------------------

compile session:

$ dmd aaliteral.d
gcc aaliteral.o -o aaliteral -m32 -Xlinker
-L/home/manuel/dev/compiler/digitalmars/dmd/bin/../lib -lphobos -lpthread -lm 
aaliteral.o: In function `_Dmain':
aaliteral.d:(.gnu.linkonce.t_Dmain+0x14): undefined reference to
`_d_assocarrayliteralT'
collect2: ld returned 1 exit status
--- errorlevel 1


-- 



More information about the Digitalmars-d-bugs mailing list