www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2918] New: stdio.d(511): Error: cannot deduce template function from argument types !()(LockingTextWriter,uint)

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


-- 
May 02 2009
next sibling parent d-bugmail puremagic.com writes:
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: -------
Oct 11 2009
prev sibling parent d-bugmail puremagic.com writes:
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



---
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: -------
Jun 22 2010