www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14149] New: Bad std.algorithm error messages

https://issues.dlang.org/show_bug.cgi?id=14149

          Issue ID: 14149
           Summary: Bad std.algorithm error messages
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: regression
          Priority: P2
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

///////////// test.d ////////////
import std.algorithm.iteration;

void main()
{
    reduce!"a+b"("cheese", [42]);
}
/////////////////////////////////

With DMD head, this prints the errors:

C:\...\phobos\std\algorithm\iteration.d(2484,21): Error: undefined identifier
algoFormat
C:\...\phobos\std\algorithm\iteration.d(2483,17): Error: static assert  __error
C:\...\phobos\std\algorithm\iteration.d(2469,32):        instantiated from
here: reduceImpl!(false, int[], string)
C:\...\phobos\std\algorithm\iteration.d(2454,33):        instantiated from
here: reducePreImpl!(int[], string)
test.d(5,14):        instantiated from here: reduce!(string, int[])

--
Feb 08 2015