[Issue 6261] [2.054 beta regression] Regex cannot take a char[]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 6 14:45:15 PDT 2011


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


Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh at gmail.com
          Component|DMD                         |Phobos
         AssignedTo|nobody at puremagic.com        |dmitry.olsh at gmail.com
           Severity|normal                      |regression


--- Comment #1 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2011-07-06 14:40:11 PDT ---
Well it's not a bug in DMD. The issue is that CTFE got an upgrade, and detects
more subtle bugs it seems.
The main issue is that it no longer works with mutable patterns.
This also fails:
import std.regex;
void main(){
    char[] a = new char[256];
    auto re = regex(a);
}

So it's a bug in std.regex, at that exact line. (Again: it is an issue of
sloppy typecheck)
I'll see about a proper fix.

-- 
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