Thread overview
[Issue 3562] New: Static Array ops create duplicate method definitions
Nov 30, 2009
Rob Jacques
Jun 07, 2010
Don
Jun 15, 2011
yebblies
November 30, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3562

           Summary: Static Array ops create duplicate method definitions
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: link-failure
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: sandford@jhu.edu


--- Comment #0 from Rob Jacques <sandford@jhu.edu> 2009-11-30 14:40:28 PST ---
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|

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3562


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug@yahoo.com.au
           Severity|regression                  |normal


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-06-07 06:53:13 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3562


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #2 from yebblies <yebblies@gmail.com> 2011-06-15 00:11:35 PDT ---
*** This issue has been marked as a duplicate of issue 5592 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------