[Issue 2715] New: Access Violation at writefln with interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 7 23:09:52 PST 2009


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

           Summary: Access Violation at writefln with interface
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: rayerd.wiz at gmail.com


import std.stdio;
interface A {}
void main()
{
        A x;
        writefln(x);
}

C:\D\dmd\windows\bin\..\..\src\phobos\std\format.d(2050): Error: no property
'toString' for type 'a.A'
C:\D\dmd\windows\bin\..\..\src\phobos\std\format.d(2051): template
std.stdio.PrivateFileWriter!(char).PrivateFileWriter.write(C) does not match
any function template declaration
C:\D\dmd\windows\bin\..\..\src\phobos\std\format.d(2051): template
std.stdio.PrivateFileWriter!(char).PrivateFileWriter.write(C) cannot deduce
template function from argument types !()(int)

<-- dmd died here!


-- 



More information about the Digitalmars-d-bugs mailing list