[Issue 2980] New: compiler error when writefln( uint )

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 14 13:59:07 PDT 2009


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

           Summary: compiler error when writefln( uint )
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: someanon at yahoo.com


import std.stdio;

int main() {
  uint ui;
  writefln(ui);
  return 0;
}

dmd error out:
$ dmd structarr.d 
/home/zhou/project/dmd/linux/bin/../../src/phobos/std/stdio.d(518): Error:
template std.format.formattedWrite(Writer,F,A...) does not match any function
template declaration
/home/zhou/project/dmd/linux/bin/../../src/phobos/std/stdio.d(518): Error:
template std.format.formattedWrite(Writer,F,A...) cannot deduce template
function from argument types !()(LockingTextWriter,uint)

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


More information about the Digitalmars-d-bugs mailing list