[Bug libstdc++/61059] regex throws regex_error for valid extended regular expression

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun May 4 21:16:00 GMT 2014


Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.10.0
         Resolution|---                         |INVALID
   Target Milestone|---                         |4.9.1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---

#include <regex>

int main()
  std::regex description_keys("\\]", std::regex::extended);

POSIX says this is undefined:

The closing brace is not a POSIX ERE special character so should not be

As a GNU extension we accept it with -std=gnu++11

More information about the Gcc-bugs mailing list