This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/77469] std::regex x("[b\\-a]") throws with message "Invalid range in bracket expression."
- From: "alban_sf at baker-research dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Sep 2016 00:52:41 +0000
- Subject: [Bug libstdc++/77469] std::regex x("[b\\-a]") throws with message "Invalid range in bracket expression."
- Auto-submitted: auto-generated
- References: <bug-77469-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77469
--- Comment #1 from alban_sf@baker-research.com ---
Created attachment 39543
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39543&action=edit
Test program with the bug
Build the program:
g++ testRegex.cc -o testRegex -std=c++11
Run:
./testRegex
Output:
Trying: [b\-a]
Exception: Invalid range in bracket expression.