Peter Alexander <> changed:

           What    |Removed                     |Added
                 CC|                            |
                   |                            |m
         OS/Version|Windows                     |All

--- Comment #1 from Peter Alexander <> 2010-10-23 
12:39:50 PDT ---
Simpler test case:


void main()
    { static int foo; }
    { static int foo; }

$ rdmd test.d
ld: duplicate symbol _D4test4mainFZv3fooi in
/tmp/.rdmd/rdmd-test.d-801BCEFE1CAD8F2472CC2713A3BF5714/test.d.o and
collect2: ld returned 1 exit status


Unfortunately I'm not sure whether this is supposed to be an error or not.
Obviously D doesn't consider scope for the mangled names of static local
variables, but if this is meant to be an error then it should be a compiler
error, not linker error.

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

Reply via email to