Thread overview
Error on using regex in dmd v2.088.1
Feb 03, 2020
Dharmil Patel
Feb 03, 2020
Dharmil Patel
Feb 03, 2020
Andrea Fontana
February 03, 2020
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

February 03, 2020
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
February 03, 2020
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