http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57984
Bug ID: 57984 Summary: "terminate called after throwing an instance of 'std::regex_error' what(): regex_error" during regex object construction Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: snypxy at yandex dot com #include <regex> #include <stdio.h> int main(int argc, char* argv[]) { std::regex reg_identifier("([[:alpha:]]|_)+"); bool is_match; is_match = std::regex_match("__my_var", reg_identifier); printf("%s\n", is_match? "Match" : "Not match"); return 0; } outout: terminate called after throwing an instance of 'std::regex_error' what(): regex_error