[Issue 5008] New: Bizarre "conflicts with __anonymous at" error with regex and indirectly imported phobos
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 7 01:07:24 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5008
Summary: Bizarre "conflicts with __anonymous at" error with
regex and indirectly imported phobos
Product: D
Version: D1 & D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: cbkbbejeap at mailinator.com
--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2010-10-07 01:06:58 PDT ---
Not sure if this is a bug in DMD or Phobos:
-----------------
module a;
import std.regex;
import b;
void main()
{
replace("hello", regex("X"), "Y");
}
-----------------
module b;
public import std.string;
public import std.array;
-----------------
> dmd a.d b.d
Result:
-----------------
a.d(7): Error: std.regex.replace(Range,Engine,String) if (is(Unqual!(Engine) ==
Regex!(Unqual!(typeof(Range.init[0]))))) at
D:\DevTool\dmd\bin\..\src\phobos\std\regex.d(2807) conflicts with __anonymous
at
-----------------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list