[Issue 4618] New: std.algorithm.reduce over fixed-size array	(regression)
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Aug 11 01:51:45 PDT 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 at puremagic.com
        ReportedBy: spam at extrawurst.org
--- Comment #0 from Stephan Dilly <spam at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list