www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3260] New: "Error: undefined identifier backend" when compiling 'write' with 'wchar'

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: acehreli 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: -------
Aug 19 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3260


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com





23:59:42 PDT ---
Thanks for the report.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 19 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3260


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED





08:51:08 PDT ---
Fix coming with the next release of Phobos.

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