digitalmars.D.bugs - [Issue 11262] New: std.regex.replace does not accept StaticRegex
- d-bugmail puremagic.com (61/61) Oct 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11262
- d-bugmail puremagic.com (11/11) Oct 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11262
- d-bugmail puremagic.com (14/14) Oct 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11262
- d-bugmail puremagic.com (10/10) Oct 17 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11262
http://d.puremagic.com/issues/show_bug.cgi?id=11262
Summary: std.regex.replace does not accept StaticRegex
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: Jesse.K.Phillips+D gmail.com
12:03:21 PDT ---
When using a ctRegex for replace, the compiler is unable to locate a proper
overload. This worked in 2.63.
import std.regex;
void main() {
enum reg = ctRegex!(r",", "g");
auto str = "This,List";
str = str.replace(reg, "-");
}
--------------
C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(6107): Error: template
std.regex.repla
ceMatchesInto does not match any function template declaration. Candidates are:
C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(6067):
std.regex.replaceMatches
Into(alias output, Sink, R, T)(ref Sink sink, R input, T matches) if
(isOutputRange!(Sink,
dchar) && isSomeString!R && is(T == RegexMatch!R))
C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(6107): Error: template
std.regex.repla
ceMatchesInto(alias output, Sink, R, T)(ref Sink sink, R input, T matches) if
(isOutputRan
ge!(Sink, dchar) && isSomeString!R && is(T == RegexMatch!R)) cannot deduce
template functi
on from argument types !(__lambda4)(Appender!string, string,
RegexMatch!(string, Backtrack
ingMatcher))
C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(6099): Error: function
std.regex.repla
ce!(match, string, char, StaticRegex!char).replace.replaceAllWith!((m, sink) =>
replaceFmt
(format, m, sink), match, string, StaticRegex!char).replaceAllWith no return
exp; or asser
t(0); at end of function
C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(6393): Error: template
instance std.re
gex.replace!(match, string, char, StaticRegex!char).replace.replaceAllWith!((m,
sink) => r
eplaceFmt(format, m, sink), match, string, StaticRegex!char) error
instantiating
.\regct.d(6): instantiated from here: replace!(match, string, char,
StaticRegex!cha
r)
.\regct.d(6): Error: template instance std.regex.replace!(match, string, char,
StaticRegex
!char) error instantiating
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 14 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11262
Dmitry Olshansky <dmitry.olsh gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
CC| |dmitry.olsh gmail.com
12:54:37 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1641
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11262
Dmitry Olshansky <dmitry.olsh gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
13:16:58 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/8f00475ef27cd6382500b8296ae7f23ed3c8fe16
too tight constraint that has no use in private function
Fixes issue 1262
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11262
Dmitry Olshansky <dmitry.olsh gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |growlercab gmail.com
02:00:43 PDT ---
*** Issue 11285 has been marked as a duplicate of this issue. ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 17 2013









d-bugmail puremagic.com 