[Issue 14149] New: Bad std.algorithm error messages

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 8 07:54:15 PST 2015


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 at puremagic.com
          Reporter: thecybershadow at 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[])

--


More information about the Digitalmars-d-bugs mailing list