https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116903

Alfred Agrell <blubban at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blubban at gmail dot com

--- Comment #3 from Alfred Agrell <blubban at gmail dot com> ---
https://262.ecma-international.org/#prod-SyntaxCharacter says 

SyntaxCharacter :: one of
^ $ \ . * + ? ( ) [ ] { } |

PatternCharacter ::
SourceCharacter but not SyntaxCharacter

so I believe that regex is, in fact, invalid, and browsers accepting it is some
kind of compatibility extension.

But I agree it's complicated. Does the C++ spec ever say which version of
ECMA-262 those regexes should match?

Reply via email to