Skip to content

Including a Regular Expression, makes the program crash without even starting #11

@hcfcoder

Description

@hcfcoder

It seems that using functionalities of the <regex> header, makes the program crash without even starting to run.

I have created a minimal program to reproduce this issue:
https://gist.github.com/hcfcoder/9d3eb3212ce39bccd5dac95edf097d5a

Basically, adding these 2 codelines makes the program not able to start:

#include <regex>
static std::regex includeRegex = std::regex("\s*#include\s+([\\/A-Za-z0-9\-\.]+)");

I hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions