[Boost-bugs] [Boost C++ Libraries] #9289: Boost1.54/regex doesn't throw exception on invalid pattern (regression)

Subject: [Boost-bugs] [Boost C++ Libraries] #9289: Boost1.54/regex doesn't throw exception on invalid pattern (regression)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-22 12:02:41


#9289: Boost1.54/regex doesn't throw exception on invalid pattern (regression)
------------------------------+-------------------------
 Reporter: xnox@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.54.0 | Severity: Regression
 Keywords: |
------------------------------+-------------------------
 {{{
 #include <boost/regex.hpp>

 main () {
         boost::regex("{notclosed");
 }
 }}}

 Above code is essentially part of source-highlight test-suite. Above code
 is expected to throw boost::regex_error exception. And it did so up-to
 boost 1.53, with boost 1.54 it no longer throws that.

 Expected output
 {{{
 $ ./a.out
 terminate called after throwing an instance of
 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::regex_error>
>'
   what(): Invalid content of repeat range. The error occurred while
 parsing the regular expression: '{>>>HERE>>>notclosed'.
 Aborted (core dumped)
 $ echo $?
 134
 }}}

 Actual with boost1.54
 {{{
 $ ./a.out
 $ echo $?
 0
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9289>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC