Error on using regex in dmd v2.088.1

Andrea Fontana nospam at example.com
Mon Feb 3 10:30:17 UTC 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


More information about the Digitalmars-d-learn mailing list