Nick Sabalausky <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #6 from Nick Sabalausky <> 2012-01-16 
18:42:58 PST ---
This painful issue still exists in 2.057. Here's a simpler testcase for linux
(tested on 32bit):

import testb;

void main()
    string output;

struct Foo(alias al)
    int[] var;

    int func()
        return var[0];

void bar(alias al)()
    auto foo = Foo!(al)();

$dmd testa.d testb.d
testa.o: In function
undefined reference to `_D5testa7__arrayZ'
collect2: ld returned 1 exit status
--- errorlevel 1

The bug goes away if you compile with "-release", or (interestingly) if you
compile separately and then link.

The testcase above doesn't trigger the bug on Windows, but the problem *does*
exist on Windows too (I just don't have a reduced Windows test case right now).

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

Reply via email to