www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12105] New: ctRegex errors

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

           Summary: ctRegex errors
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: temtaime gmail.com


--- Comment #0 from Temtaime <temtaime gmail.com> 2014-02-07 23:22:32 PST ---
import std.regex;
auto r = ctRegex!`.+?(?<!\\)a`;
void main() {}

Gives:
src\phobos\std\regex.d-mixin-5859(5943): Error: found 'else' instead of
statement

import std.regex;
StaticRegex!char[1] tokenRegex = [ ctRegex!`` ];
void main() {}

On windows gives strange errors to curl(it is neccessary to compile with -O
-noboundscheck -release)
curl.lib
 Warning 2: File Not Found curl.lib
curl.lib
 Warning 2: File Not Found curl.lib
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_easy_init
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_easy_setopt
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_easy_strerror
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_slist_append
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_easy_duphandle
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_easy_perform
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_slist_free_all
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_easy_cleanup
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_global_init
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_version_info
DMD\windows\bin\..\lib\phobos.lib(curl) 
 Error 42: Symbol Undefined _curl_global_cleanup

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 07 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12105


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh gmail.com
         AssignedTo|nobody puremagic.com        |dmitry.olsh gmail.com


--- Comment #1 from Dmitry Olshansky <dmitry.olsh gmail.com> 2014-02-08
02:36:30 PST ---
Somewhat reduced, the lookaround and lazy repetition are required:

import std.regex;
auto r = ctRegex!`.*?(?!)`;
void main() {}

The second case looks like a compiler bug, especially since it requires some
combination of flags.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 08 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12105


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #2 from Dmitry Olshansky <dmitry.olsh gmail.com> 2014-02-22
13:26:38 PST ---
https://github.com/D-Programming-Language/phobos/pull/1959

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 22 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12105



--- Comment #3 from github-bugzilla puremagic.com 2014-02-23 11:49:16 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/873a440fd44a52dd84600d572f62175b4b9b0551
std.regex - fix issue 12105

Handle the case where a lazy quantified loop will have
pessimistic empty "quick test", for example
in front of a lookaround.

https://github.com/D-Programming-Language/phobos/commit/afd910e924eb60b0c53e8ec3c9bfc6cde4a8db2a
Merge pull request #1959 from blackwhale/issue-12105

std.regex - fix issue 12105

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 23 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12105


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 23 2014