www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3562] New: Static Array ops create duplicate method definitions

reply d-bugmail puremagic.com writes:
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: -------
Nov 30 2009
parent d-bugmail puremagic.com writes:
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: -------
Jun 07 2010