www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7740] New: unicodeProperties cannot be read at compile time for ctRegex

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7740

           Summary: unicodeProperties cannot be read at compile time for
                    ctRegex
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jayn prismnet.com



this is on win7 2.058 d2

void wcp_bug_no_p(string fn)
{
    enum ctr =  ctRegex!(r"\p{WhiteSpace}","m");
}


------ Build started: Project: a7, Configuration: Debug Win32 
------
Building Debug\a7.exe...
G:\d\dmd2\windows\bin\..\..\src\phobos\std\regex.d(786): Error: 
static variable unicodeProperties cannot be read at compile time

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 19 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7740




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/ab611521fa6c671139b6e1b651948e458faf4993
quick shot at ctRegex issue 7740

Stopped by issue 6419 "CTFE nested structs ... not implemented"

https://github.com/D-Programming-Language/phobos/commit/d7ea3c808ded8ee44c8e2ac687febab9d577f15c


A quick shot at ctRegex issue 7740

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 20 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7740


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED



13:06:23 PST ---
Compilable test-case:

import std.regex;
void wcp_bug_no_p(string fn)
{
    enum ctr = ctRegex!(r"\p{WhiteSpace}","m");
}
void main() { }


Fixed in git-head.

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