On Wednesday, 7 August 2013 at 22:36:39 UTC, Milvakili wrote:
Hi,
I can compile

void main(){
auto myRegx = regex(`(?!test)`);
}

however can not compile this one

void main(){
auto myRegx =  ctRegex!(`(?!test)`);
}

code sample:http://dpaste.dzfl.pl/d38926f4

and get the following error:

snip...

Go ahead and add it to the issue tracker: http://d.puremagic.com/issues/

FWIW, I get the same error, and I get a similar one in LDC:

/usr/include/d/std-ldc/std/regex.d(4350): Error: ['N', 'e', 'g', 'l', 'o', 'o', 'k', 'a', 'h', 'e', 'a', 'd', 'S', 't', 'a', 'r', 't'][0LU..17LU] /usr/include/d/std-ldc/std/regex.d(4308): called from here: this.ctGenGroup(ir, result.addr) /usr/include/d/std-ldc/std/regex.d(4746): called from here: this.ctGenBlock(re.ir, 0) /usr/include/d/std-ldc/std/regex.d(4795): called from here: context.ctGenRegEx(re) /usr/include/d/std-ldc/std/regex.d(6482): called from here: ctGenRegExCode(regex("(?!test)", [])) /usr/include/d/std-ldc/std/regex.d(6506): Error: template instance std.regex.ctRegexImpl!("(?!test)", []) error instantiating
    instantiatied in test.d(10): ctRegex!("(?!test)")
test.d(10): Error: template instance std.regex.ctRegex!("(?!test)") error instantiating

Reply via email to