[Boost-bugs] [Boost C++ Libraries] #13081: Xpressive crashes in release if auto keyword used.

Subject: [Boost-bugs] [Boost C++ Libraries] #13081: Xpressive crashes in release if auto keyword used.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-18 21:29:46


#13081: Xpressive crashes in release if auto keyword used.
--------------------------------------------+--------------------------
 Reporter: Evgeny Yashin <johny5.coder@…> | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: xpressive
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: |
--------------------------------------------+--------------------------
 This code.

 #include "boost/xpressive/xpressive.hpp"

 int main()
 {
         using namespace boost::xpressive;

         auto scheme = (s1 = +_w) >> "://";
         auto host_ipv6 = (s2 = ('[' >> +(xdigit | ':') >> ']'));
         cregex uri_re = scheme >> host_ipv6;

         cmatch m;
         if( regex_match( "http://[fe::]", m, uri_re ) )
         {
                 // [first, last) pair of iterators, with implicit
 operator string()
                 std::string protocol = m[1];
                 protocol = protocol;
         }

     return 0;
 }

 Crashes with access violation to random address. Visual Studio 2015
 **RELEASE** builds only (for both 32/64 bit builds).

--
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13081>
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-06-18 21:33:55 UTC