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.
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.
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
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