October 07, 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@puremagic.com
        ReportedBy: cbkbbejeap@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap@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: -------
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5008


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dawg@dawgfoto.de
         Resolution|                            |WORKSFORME


--- Comment #1 from dawg@dawgfoto.de 2012-02-14 06:04:30 PST ---
cat > a.d << CODE
module a;
import std.regex;
import b;

void main()
{
    replace("hello", regex("X"), "Y");
}
CODE

cat > b.d << CODE
module b;
public import std.string;
public import std.array;
CODE

dmd -c a.d b.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------