www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2902] New: improve error message with template

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: someanon 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.


-- 
Apr 25 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2902


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |diagnostic




------- Comment #1 from smjg iname.com  2009-04-26 11:11 -------
Now try telling the rest of us what you're trying to compile when these
messages appear.


-- 
Apr 26 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2902





------- Comment #2 from someanon yahoo.com  2009-04-26 13:03 -------
(In reply to comment #1)
 Now try telling the rest of us what you're trying to compile when these
 messages appear.
 

I don't know! The compiler should tell me where is caller is! That's exactly why I'm logging this bug. When I upgrade the compiler it suddenly have this error, it's hard to dig into thousands of lines of my code to find out which writefln is causing the problem. --
Apr 26 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2902


fvbommel wxs.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #3 from fvbommel wxs.nl  2009-04-26 15:04 -------
What you're asking for is a template instantiation backtrace, making this a
dupe of bug 2510.

*** This bug has been marked as a duplicate of 2510 ***


-- 
Apr 26 2009