[Issue 3260] New: "Error: undefined identifier backend" when compiling 'write' with 'wchar'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 19 15:10:43 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3260
Summary: "Error: undefined identifier backend" when compiling
'write' with 'wchar'
Product: D
Version: 2.031
Platform: x86
OS/Version: Linux
Status: NEW
Keywords: rejects-valid
Severity: critical
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: acehreli at yahoo.com
Fails to compile the following program:
import std.stdio;
void main()
{
wchar c = 'a';
write(c);
}
Compiler output:
dmd -w deneme.d
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(924): Error:
undefined identifier backend
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(924): Error: function
std.stdio.fputc_unlocked (int, _iobuf*) does not match parameter types
(wchar,int)
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(924): Error: cannot
implicitly convert expression (backend) of type int to _iobuf*
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(931): Error:
undefined identifier backend
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(931): Error: function
std.stdio.fputc_unlocked (int, _iobuf*) does not match parameter types
(char,int)
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(931): Error: cannot
implicitly convert expression (backend) of type int to _iobuf*
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(936): Error:
undefined identifier backend
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(936): Error: function
std.stdio.fputwc_unlocked (dchar, _iobuf*) does not match parameter types
(wchar,int)
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(936): Error: cannot
implicitly convert expression (backend) of type int to _iobuf*
/home/acehreli/dmd/linux/bin/../../src/phobos/std/stdio.d(1992): Error:
template instance std.stdio.File.LockingTextWriter.put!(wchar) 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