[Issue 6261] New: [2.054 beta regression] Regex cannot take a char[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 6 13:35:11 PDT 2011
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: nobody at puremagic.com
ReportedBy: Jesse.K.Phillips+D at gmail.com
CC: Jesse.K.Phillips+D at gmail.com
--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at 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: -------
More information about the Digitalmars-d-bugs
mailing list