[Issue 14149] Bad std.algorithm error messages

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 15 16:12:46 PST 2015


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

sinkuupump at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |sinkuupump at gmail.com
         Depends on|                            |13372
         Resolution|FIXED                       |---

--- Comment #2 from sinkuupump at gmail.com ---
I forgot removing "Fix" from the commit message.

Now it prints dirrerent errors:
phobos/std/traits.d(516): Error: forward reference of variable parentPrefix
phobos/std/traits.d(427): Error: template instance
std.traits.fqnSym!(binaryFun) error instantiating
phobos/std/algorithm/iteration.d(2487):        instantiated from here:
fullyQualifiedName!(binaryFun)
phobos/std/algorithm/iteration.d(2471):        instantiated from here:
reduceImpl!(false, int[], string)
phobos/std/algorithm/iteration.d(2455):        instantiated from here:
reducePreImpl!(int[], string)
test.d(5):        instantiated from here: reduce!(string, int[])
phobos/std/algorithm/iteration.d(2486): Error: static assert  __error
phobos/std/algorithm/iteration.d(2471):        instantiated from here:
reduceImpl!(false, int[], string)
phobos/std/algorithm/iteration.d(2455):        instantiated from here:
reducePreImpl!(int[], string)
test.d(5):        instantiated from here: reduce!(string, int[])

This seems caused by Issue 13372. (fqnSym!(T) instantiates
fqnSym!(__traits(parent, T)))

--


More information about the Digitalmars-d-bugs mailing list