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: nob...@puremagic.com
        ReportedBy: cbkbbej...@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbej...@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: -------

Reply via email to