[Issue 9634] std.regex.ctRegex chokes on (?:a+)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 12 07:56:08 PDT 2013


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



--- Comment #1 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-03-12 07:56:06 PDT ---
Created an attachment (id=1200)
Stripped down regex parser that shows the bug

Don I belive I've found something that of interest.

In short - I've got cut down sample, there is no _ctfe branching here, ~500
lines and most of imports are there to print stuff.

Up to last step in bytecode generation all is OK and the result is the same,
then at the last step somehow even simple fill with 1 to n loop fails.
(see below)

See lines marked as CRITICAL POINT to see this bisection of the execution.

The output is:

RT version
0       Char   (0x0)
1       Char ☺ (0x1)
2       Char ☻ (0x2)
3       Char ♥ (0x3)
4       Char ♦ (0x4)
5       cast(IR)0
6       End

CT version
0       Char   (0x0)
1       Char ♥ (0x3)
2       Char ☻ (0x2)
3       Char ♥ (0x3)
4       Char ♦ (0x4)
5       cast(IR)0
6       End

Instead it should be the same in both versions.

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