[Bug libstdc++/61425] std::regex ignores backslash when using basic or grep grammars

2014-06-06 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61425 --- Comment #4 from Andreas Schwab sch...@linux-m68k.org --- \| is just undefined in BRE, so an implementation can do whatever it wants.

[Bug libstdc++/61425] std::regex ignores backslash when using basic or grep grammars

2014-06-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61425 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org --- Correction: it ignores it with -std=gnu++11, it throws regex_error with -std=c++11 So it's treating \| as illegal, which is wrong for a POSIX BRE.

[Bug libstdc++/61425] std::regex ignores backslash when using basic or grep grammars

2014-06-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61425 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org --- Hmm, I guess I shouldn't trust man pages, a POSIX BRE doesn't allow \| Both GNU and BSD grep do allow 'a\|b' in a BRE though ... still trying to determine if it should be allowed

[Bug libstdc++/61425] std::regex ignores backslash when using basic or grep grammars

2014-06-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61425 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED