www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error on using regex in dmd v2.088.1

reply Dharmil Patel <pdharmil706 gmail.com> writes:
In my code I am using regex like this:

        auto rgxComma = regex(r",");

On compiling with dmd v2.076.1, it compiles successfully, but on 
compiling with dmd v2.088.1, I am getting lots of errors like:

/src/phobos/std/regex/internal/thompson.d-mixin-836(837): Error: 
template instance 
std.regex.internal.thompson.ThompsonOps!(EngineType!(char, 
Input!char), State, true).op!cast(IR)164u error instantiating
Feb 02 2020
parent reply Dharmil Patel <pdharmil706 gmail.com> writes:
On Monday, 3 February 2020 at 07:03:03 UTC, Dharmil Patel wrote:
 In my code I am using regex like this:

        auto rgxComma = regex(r",");

 On compiling with dmd v2.076.1, it compiles successfully, but 
 on compiling with dmd v2.088.1, I am getting lots of errors 
 like:

 /src/phobos/std/regex/internal/thompson.d-mixin-836(837): 
 Error: template instance 
 std.regex.internal.thompson.ThompsonOps!(EngineType!(char, 
 Input!char), State, true).op!cast(IR)164u error instantiating
Can someone please help me solve this error? Thanks Dharmil
Feb 02 2020
parent Andrea Fontana <nospam example.com> writes:
On Monday, 3 February 2020 at 07:11:34 UTC, Dharmil Patel wrote:
 On Monday, 3 February 2020 at 07:03:03 UTC, Dharmil Patel wrote:
 In my code I am using regex like this:

        auto rgxComma = regex(r",");

 On compiling with dmd v2.076.1, it compiles successfully, but 
 on compiling with dmd v2.088.1, I am getting lots of errors 
 like:

 /src/phobos/std/regex/internal/thompson.d-mixin-836(837): 
 Error: template instance 
 std.regex.internal.thompson.ThompsonOps!(EngineType!(char, 
 Input!char), State, true).op!cast(IR)164u error instantiating
Can someone please help me solve this error? Thanks Dharmil
Hi Dharmil! It works for me using 2.088.1 with docker. Are you sure your installation is ok? Andrea
Feb 03 2020