Summary: Linking error with associative array of arrays
           Product: D
           Version: 2.039
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Alexey Ivanov <> 2010-01-27 15:02:34 PST 
--file: a.d--
module a;

class A {
    private int[][int] n;

    public int[][int] foo() {
        return n;
--file: b.d--
import std.stdio;
import a;

int main() {
    A a = new A();
    if ( != 0) {
        foreach (key, value; {
            writefln("%s %s", key, value);
    return 0;
dmd -c a.d
dmd -c b.d
gcc a.o b.o -lphobos2 -lpthread -lm

...and get errors:
bug.o: In function `_Dmain':
bug.d:(.text._Dmain+0x24): undefined reference to
bug.d:(.text._Dmain+0x43): undefined reference to
collect2: ld returned 1 exit status

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to