http://d.puremagic.com/issues/show_bug.cgi?id=6261

           Summary: [2.054 beta regression] Regex cannot take a char[]
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: jesse.k.phillip...@gmail.com
                CC: jesse.k.phillip...@gmail.com


--- Comment #0 from Jesse Phillips <jesse.k.phillip...@gmail.com> 2011-07-06 
13:30:08 PDT ---
The code below will not compile:

import std.regex;

void main(){
    auto re = regex("foo".dup);
}

src\phobos\std\regex.d(1537): Error: cannot cast a
read-only string literal to mutable in CTFE
src\phobos\std\regex.d(1537): Error: cannot evaluate 
tuple("","\x01") at compile time

I think there is a bug report on this, but also notice the instantiation line
isn't given (only the line in regex.d).

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

Reply via email to