← Back to index
|
Original Bugzilla link
Bug 9587 – rdmd now fails to compile due to Phobos changes
Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-25T11:07:00Z
Last change time
2013-03-10T01:49:10Z
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0
by bugzilla — 2013-02-25T11:07:06Z
ollie writes in the n.g.: I did a new fetch of dmd, druntime, phobos and tools on win32 machine. Everything compiles until rdmd.exe in tools with an error stating that std.conv.to is CTFEable. The following patch fixes the problem. Thanks to everyone for their hard work to make D better. diff --git a/std/typecons.d b/std/typecons.d index 28dbcc3..ee8a3cc 100644 --- a/std/typecons.d +++ b/std/typecons.d @@ -323,7 +323,7 @@ private: string decl = ""; foreach (i, name; staticMap!(extractName, fieldSpecs)) { - enum numbered = toStringNow!(i); + enum numbered = to!(string)(i); decl ~= "alias Identity!(field[" ~ numbered ~ "]) _" ~ numbered ~ ";"; if (name.length != 0) { @@ -2069,7 +2069,7 @@ private static: // overloaded function with the name. template INTERNAL_FUNCINFO_ID(string name, size_t i) { - enum string INTERNAL_FUNCINFO_ID = "F_" ~ name ~ "_" ~ toStringNow!(i); + enum string INTERNAL_FUNCINFO_ID = "F_" ~ name ~ "_" ~ to!(string) (i); } /* @@ -2329,7 +2329,7 @@ private static: { template PARAMETER_VARIABLE_ID(size_t i) { - enum string PARAMETER_VARIABLE_ID = "a" ~ toStringNow!(i); + enum string PARAMETER_VARIABLE_ID = "a" ~ to!(string)(i); // default: a0, a1, ... } } @@ -2516,7 +2516,7 @@ private static: if (stc & STC.lazy_ ) params ~= "lazy "; // Take parameter type from the FuncInfo. - params ~= myFuncInfo ~ ".PT[" ~ toStringNow!(i) ~ "]"; + params ~= myFuncInfo ~ ".PT[" ~ to!(string)(i) ~ "]"; // Declare a parameter variable. params ~= " " ~ PARAMETER_VARIABLE_ID!(i);
Comment #1
by andrej.mitrovich — 2013-02-25T11:08:33Z
It's fixed by this:
https://github.com/D-Programming-Language/phobos/pull/1171
Comment #2
by dlang-bugzilla — 2013-03-10T01:49:10Z
Pull was merged, rdmd now compiles, so I guess this has been fixed