This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77469] std::regex x("[b\\-a]") throws with message "Invalid range in bracket expression."


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]