The array ops generated for static arrays appear to trigger Issue 2703/2789 (or something similar). I'm filling a separate issue as fixing Issue 2703/2789, would simply convert the linking error to a compiling error.
------ goodbye.d
void foo() {
float[3] a = [-1,-2,-3];
float[3] b;
b[] = -a[];
}
----- hello.d
import goodbye;
void main(string[] args) {
float[3] a = [-1,-2,-3];
float[3] b;
b[] = -a[];
}
---- Error
Previous Definition Different : __arraySliceNegSliceAssign_f|
Comment #1 by clugdbug — 2010-06-07T06:53:13Z
To reproduce:
---
> dmd -c hello
> dmd -c goodbye
> dmd hello.obj goodbye.obj
Error 1: Previous Definition Different : __arraySliceNegSliceAssign_f
This isn't a regression. It behaved in exactly the same way on DMD2.020.
Comment #2 by yebblies — 2011-06-15T00:11:35Z
*** This issue has been marked as a duplicate of issue 5592 ***