[Bug libstdc++/67361] std::regex_error::what() should say something about the error_code

timshen at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 27 03:08:00 GMT 2015


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

Tim Shen <timshen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timshen at gcc dot gnu.org

--- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> This would be more helpful if it included a string representation of the
> error_code such as regex_constants::error_paren:
> 
> terminate called after throwing an instance of 'std::regex_error'
>   what():  regex_error

Would it be Ok to provide more specific, human readable error string? For
example, "Unexpected end of regex after a backslash".



More information about the Gcc-bugs mailing list