[Bug c++/57984] New: "terminate called after throwing an instance of 'std::regex_error' what(): regex_error" during regex object construction
snypxy at yandex dot com
gcc-bugzilla@gcc.gnu.org
Thu Jul 25 10:10:00 GMT 2013
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
More information about the Gcc-bugs
mailing list