[Issue 2902] New: improve error message with template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 25 21:13:34 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2902

           Summary: improve error message with template
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: someanon at yahoo.com


the following message is very hard to track down the issue:

dmd/linux/bin/../bin/../../src/phobos/std/stdio.d(511): Error: template
std.format.formattedWrite(Writer,F,A...) does not match any function template
declaration
dmd/linux/bin/../bin/../../src/phobos/std/stdio.d(511): Error: template
std.format.formattedWrite(Writer,F,A...) cannot deduce template function from
argument types !()(LockingTextWriter,int,immutable(char)[])

It's better to also pin-point where is the caller: writefln.


-- 



More information about the Digitalmars-d-bugs mailing list