www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5772] New: Tuple containing typedefed value causes error in format.d

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

           Summary: Tuple containing typedefed value causes error in
                    format.d
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: magnus hetland.org



PDT ---
Sample program:

import std.typecons;

typedef uint oid_t;

void main() {
    // Tuple!(uint,uint) key; // Works
    Tuple!(oid_t,oid_t) key; // Doesn't work
}

Error observed when compiling when using DMD 2.052:

/path/to/src/phobos/std/format.d(1579): Error: function
std.format.formatValue!(Appender!(string),oid_t,immutable(char)).formatValue is
deprecated
/path/to/src/phobos/std/format.d(306): Error: template instance
std.format.formatGeneric!(Appender!(string),oid_t,immutable(char)) error
instantiating
/path/to/src/phobos/std/typecons.d(507):        instantiated from here:
formattedWrite!(Appender!(string),immutable(char),oid_t)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 23 2011