Bug 3562 – Static Array ops create duplicate method definitions

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-11-30T14:40:00Z
Last change time
2015-06-09T01:27:04Z
Keywords
link-failure
Assigned to
nobody
Creator
sandford

Comments

Comment #0 by sandford — 2009-11-30T14:40:28Z
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 ***