Boost C++ Libraries: Ticket #13081: Xpressive crashes in release if auto keyword used. https://svn.boost.org/trac10/ticket/13081 <p> This code. </p> <p> #include "boost/xpressive/xpressive.hpp" </p> <p> int main() { </p> <blockquote> <p> using namespace boost::xpressive; </p> </blockquote> <blockquote> <p> auto scheme = (s1 = +_w) &gt;&gt; ":<em>"; auto host_ipv6 = (s2 = ('[' &gt;&gt; +(xdigit | ':') &gt;&gt; ']')); cregex uri_re = scheme &gt;&gt; host_ipv6; </em></p> </blockquote> <blockquote> <p> cmatch m; if( regex_match( "<a class="ext-link" href="http://[fe"><span class="icon">​</span>http://[fe</a>::]", m, uri_re ) ) { </p> <blockquote> <p> <em> [first, last) pair of iterators, with implicit operator string() std::string protocol = m<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a>; protocol = protocol; </em></p> </blockquote> <p> } </p> </blockquote> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> <p> Crashes with access violation to random address. Visual Studio 2015 <strong>RELEASE</strong> builds only (for both 32/64 bit builds). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13081 Trac 1.4.3 Evgeny Yashin <johny5.coder@…> Sun, 18 Jun 2017 21:31:41 GMT <link>https://svn.boost.org/trac10/ticket/13081#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13081#comment:1</guid> <description> <pre class="wiki">This code. #include "boost/xpressive/xpressive.hpp" int main() { using namespace boost::xpressive; auto scheme = (s1 = +_w) &gt;&gt; "://"; auto host_ipv6 = (s2 = ('[' &gt;&gt; +(xdigit | ':') &gt;&gt; ']')); cregex uri_re = scheme &gt;&gt; host_ipv6; cmatch m; if( regex_match( "http://[fe::]", m, uri_re ) ) { std::string protocol = m[1]; protocol = protocol; } return 0; } </pre><p> Crashes with access violation to random address. Visual Studio 2015 RELEASE builds only (for both 32/64 bit builds). </p> </description> <category>Ticket</category> </item> </channel> </rss>