public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57984] New: "terminate called after throwing an instance of 'std::regex_error' what(): regex_error" during regex object construction
@ 2013-07-25 10:10 snypxy at yandex dot com
2013-07-25 10:38 ` [Bug libstdc++/57984] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: snypxy at yandex dot com @ 2013-07-25 10:10 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/57984] "terminate called after throwing an instance of 'std::regex_error' what(): regex_error" during regex object construction
2013-07-25 10:10 [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
@ 2013-07-25 10:38 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-25 10:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57984
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |timshen at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In 4.8.1 <regex> is unimplemented (per the Status table). We are making
progress for 4.9.0.
*** This bug has been marked as a duplicate of bug 53631 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-25 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25 10:10 [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
2013-07-25 10:38 ` [Bug libstdc++/57984] " paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).