Thread overview
[Issue 2918] New: stdio.d(511): Error: cannot deduce template function from argument types !()(LockingTextWriter,uint)
May 02, 2009
d-bugmail
Jun 23, 2010
Shin Fujishiro
May 02, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2918

           Summary: stdio.d(511): Error:  cannot deduce template function
                    from argument types !()(LockingTextWriter,uint)
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: someanon@yahoo.com


$ cat xor.d
import std.random;
import std.stdio;

int main() {
  Random r = Random();
  writefln(r.front);
  return 0;
}

$ dmd xor.d
/dmd/linux/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/../../src/phobos/std/stdio.d(511): Error: template
std.format.formattedWrite(Writer,F,A...) cannot deduce template function from
argument types !()(LockingTextWriter,uint)


-- 

October 11, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2918


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         AssignedTo|nobody@puremagic.com        |andrei@metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 23, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2918


Shin Fujishiro <rsinfu@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |rsinfu@gmail.com
         Resolution|                            |FIXED


--- Comment #1 from Shin Fujishiro <rsinfu@gmail.com> 2010-06-22 20:47:28 PDT ---
The bug is already fixed -- recent Phobos generates following error message for your testcase:

Error: static assert  "You must pass a formatting string as the first argument to writef or writefln. If no formatting is needed, you may want to use write or writeln."

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------