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

2016-09-03 Thread alban...@baker-research.com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: alban...@baker-research.com Target Milestone: --- Hello, The std::regex constructor throws when passed "[b\\-a]". The messag

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

2016-09-03 Thread alban...@baker-research.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77469 --- Comment #1 from alban...@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++

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

2016-09-03 Thread alban...@baker-research.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77469 --- Comment #2 from alban...@baker-research.com --- Created attachment 39544 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39544&action=edit config.log from building gcc 6.2.0

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

2016-09-03 Thread alban...@baker-research.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77469 --- Comment #3 from alban...@baker-research.com --- Created attachment 39545 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39545&action=edit Preprocessed file generated by -save-temps