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

--- Comment #0 from Jesse Phillips <> 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:
------- You are receiving this mail because: -------

Reply via email to