[Issue 2578] Compiler crashes when type is passed to writefln()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 2 23:58:01 PDT 2009


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


clugdbug at yahoo.com.au changed:

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




------- Comment #1 from clugdbug at yahoo.com.au  2009-04-03 01:58 -------
Works for me, Windows DMD 1.042 and DMD2.027.
DMD2.027 doesn't refer to the source file which contained the error, but I
think that's normal behaviour and a quite different Phobos issue (Phobos
doesn't accept structs without toString().

c:\dmd\windows\bin\..\..\src\phobos\std\format.d(2050): Error: no property
'toSt
ring' for type 'Foo'
c:\dmd\windows\bin\..\..\src\phobos\std\format.d(2051): Error: template
std.stdi
o.PrivateFileWriter!(char).PrivateFileWriter.write(C) does not match any
functio
n template declaration
c:\dmd\windows\bin\..\..\src\phobos\std\format.d(2051): Error: template
std.stdi
o.PrivateFileWriter!(char).PrivateFileWriter.write(C) cannot deduce template
fun
ction from argument types !()(int)
c:\dmd\windows\bin\..\..\src\phobos\std\format.d(2133): Error: template
instance
 std.format.formatGeneric!(PrivateFileWriter!(char),Foo) error instantiating


-- 



More information about the Digitalmars-d-bugs mailing list