www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4618] New: std.algorithm.reduce over fixed-size array (regression)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4618

           Summary: std.algorithm.reduce over fixed-size array
                    (regression)
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: spam extrawurst.org



---
this used to work in dmd2.047 since dmd2.048 it does not

[CODE]
import std.algorithm;

void main()
{
 int[3] colSum;

 auto average = reduce!("a + b")(0, colSum);
}
[/CODE]


dmd complains:

main.d(9): Error: template std.algorithm.reduce!("a + b").reduce(Args...) if
(Args.length > 0 && Args.length <= 2 && isInputRange!(Args[__dollar - 1])) does
not match any function template declaration

main.d(9): Error: template std.algorithm.reduce!("a + b").reduce(Args...) if
(Args.length > 0 && Args.length <= 2 && isInputRange!(Args[__dollar - 1])) does
not match any function template declaration

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4618


Thorsten Richter <IcyT gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |IcyT gmx.de



I'm wondering why this bug made it to the release version because it was
already brought up on the beta mailing list.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4618


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla kyllingen.net
         Resolution|                            |FIXED



00:19:38 PST ---
The problem seems to be gone in DMD 2.051.  Please reopen if I'm wrong.

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