D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5772 - Tuple containing typedefed value causes error in format.d
Summary: Tuple containing typedefed value causes error in format.d
Status: RESOLVED DUPLICATE of issue 5825
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Mac OS X
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 12:48 UTC by Magnus Lie Hetland
Modified: 2011-08-29 01:37 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Magnus Lie Hetland 2011-03-23 12:48:08 UTC
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)
Comment 1 yebblies 2011-08-29 01:37:09 UTC

*** This issue has been marked as a duplicate of issue 5825 ***