Thread overview
[Issue 4618] New: std.algorithm.reduce over fixed-size array (regression)
Aug 11, 2010
Stephan Dilly
Aug 11, 2010
Thorsten Richter
August 11, 2010
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


--- Comment #0 from Stephan Dilly <spam@extrawurst.org> 2010-08-11 01:51:41 PDT ---
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: -------
August 11, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4618


Thorsten Richter <IcyT@gmx.de> changed:

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


--- Comment #1 from Thorsten Richter <IcyT@gmx.de> 2010-08-11 04:24:58 PDT ---
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: -------
February 03, 2011
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


--- Comment #2 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2011-02-03 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: -------