[Issue 7348] to!string(null) matches more than one template declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 19 15:06:57 PDT 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #5 from bearophile_hugs at eml.cc 2012-04-19 15:07:52 PDT ---
(In reply to comment #4)
> Should we close ?

Don't close unless it's really unfixable in some way.

Maybe "void*" is an acceptable textual output for this.

---------------------

Related:

import std.stdio;
void main() {
    writeln(null);
}


DMD 2.059 shows:

...\dmd2\src\phobos\std\stdio.d(1562): Error: undefined identifier 'length'
...\dmd2\src\phobos\std\stdio.d(1562): Error: undefined identifier 'ptr', did
you mean 'template tr(C1,C2,C3,C4 = immutable(char))'?
test.d(3): Error: template instance std.stdio.writeln!(typeof(null)) error
instantiating

-- 
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