[Issue 10824] New: Unsupported regexp(?>) error during run time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 15 11:26:10 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10824
Summary: Unsupported regexp(?>) error during run time
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: maliyatbaz at gmail.com
--- Comment #0 from milvakili <maliyatbaz at gmail.com> 2013-08-15 11:26:08 PDT ---
void main(string argv[]) {
auto myRegex = regex(`(?>test)`, "i");
}
Compiles but throws the following run time error. I think this should be
handled during compile time.
std.regex.RegexException@/opt/compilers/dmd2/include/std/regex.d(1947): ':',
'=', '<', 'P' or '!' expected after '(?'
Pattern with error: `(?>` <--HERE-- `test)`
Pattern with error: `(?>` <--HERE-- `test)`
----------------
/home/d677/f315(ref @trusted std.regex.Parser!(immutable(char)[]).Parser
std.regex.Parser!(immutable(char)[]).Parser.__ctor!(const(char)[]).__ctor(immutable(char)[],
const(char)[])+0x98) [0x469978]
/home/d677/f315(@safe std.regex.Regex!(char).Regex
std.regex.regexImpl!(immutable(char)[]).regexImpl(immutable(char)[],
const(char)[])+0x5a) [0x453bca]
/home/d677/f315(std.regex.Regex!(char).Regex
std.functional.memoize!(_D3std5regex18__T9regexImplTAyaZ9regexImplFNfAyaAxaZS3std5regex12__T5RegexTaZ5Regex,
8).memoize(immutable(char)[], const(char)[])+0xe5) [0x470a55]
/home/d677/f315(@trusted std.regex.Regex!(char).Regex
std.regex.regex!(immutable(char)[]).regex(immutable(char)[],
const(char)[])+0x41) [0x453b59]
/home/d677/f315(_Dmain+0x39) [0x4537f9]
/home/d677/f315(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C)
int function(char[][])*).void runMain()+0x18) [0x47bb4c]
/home/d677/f315(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C)
int function(char[][])*).void tryExec(scope void delegate())+0x2a) [0x47b67e]
/home/d677/f315(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C)
int function(char[][])*).void runAll()+0x40) [0x47bb9c]
/home/d677/f315(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C)
int function(char[][])*).void tryExec(scope void delegate())+0x2a) [0x47b67e]
/home/d677/f315(_d_run_main+0x1ae) [0x47b63a]
/home/d677/f315(main+0x17) [0x47b487]
/usr/lib/libc.so.6(__libc_start_main+0xf5) [0x40967a15]
--
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