← Back to index
|
Original Bugzilla link
Bug 7740 – unicodeProperties cannot be read at compile time for ctRegex
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-03-19T19:52:00Z
Last change time
2013-02-05T13:06:23Z
Assigned to
nobody
Creator
jayn
Comments
Comment #0
by jayn — 2012-03-19T19:52:49Z
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
Comment #1
by github-bugzilla — 2012-05-20T15:37:10Z
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
Merge pull request #541 from blackwhale/ctRegex A quick shot at ctRegex issue 7740
Comment #2
by andrej.mitrovich — 2013-02-05T13:06:23Z
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.