Boost C++ Libraries: Ticket #13380: data-driven tests' join operator `+` corrupts first column https://svn.boost.org/trac10/ticket/13380 <p> Consider the following code: </p> <pre class="wiki">BOOST_DATA_TEST_CASE( sampleTest, (data::make(1) ^ data::make(2)) + (data::make(3) ^ data::make(4)), var1, var2) { std::cout &lt;&lt; var1 &lt;&lt; "," &lt;&lt; var2 &lt;&lt; std::endl; } </pre><p> The output I'd expect to see is: </p> <pre class="wiki">1,2 3,4 </pre><p> However it appears that <code>var1</code> gets corrupt: </p> <pre class="wiki">$&gt; ./MyTests --run_test=Tests/sampleTest Running 2 test cases... 202875304,2 202875304,4 *** No errors detected $&gt; ./MyTests --run_test=Tests/sampleTest Running 2 test cases... 83976616,2 83976616,4 *** No errors detected </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13380 Trac 1.4.3 bugs@… Sat, 06 Jan 2018 03:13:07 GMT <link>https://svn.boost.org/trac10/ticket/13380#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13380#comment:1</guid> <description> <p> It doesn't "corrupt the first column". It invoked Undefined Behaviour. </p> <p> Join iterator returns tuples, and they are temporaries. Analysis was done here: <a class="ext-link" href="https://stackoverflow.com/questions/48102512/boosts-data-driven-tests-join-operator-corrupts-first-column"><span class="icon">​</span>https://stackoverflow.com/questions/48102512/boosts-data-driven-tests-join-operator-corrupts-first-column</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Addy</dc:creator> <pubDate>Sat, 06 Jan 2018 13:40:15 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13380#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13380#comment:2</guid> <description> <p> For reference: <a class="ext-link" href="https://stackoverflow.com/questions/48102512/boosts-data-driven-tests-join-operator-corrupts-first-column"><span class="icon">​</span>https://stackoverflow.com/questions/48102512/boosts-data-driven-tests-join-operator-corrupts-first-column</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Wed, 10 Jan 2018 21:08:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13380#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13380#comment:3</guid> <description> <p> Thank you for the report, I'll have a look very soon. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Sun, 28 Oct 2018 12:25:12 GMT</pubDate> <title>owner, status, milestone changed https://svn.boost.org/trac10/ticket/13380#comment:4 https://svn.boost.org/trac10/ticket/13380#comment:4 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.69</span> </li> </ul> Ticket Raffi Enficiaud Mon, 29 Oct 2018 09:47:51 GMT <link>https://svn.boost.org/trac10/ticket/13380#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13380#comment:5</guid> <description> <p> In develop, rev 2fc875b9b22c717e17e56171501bd9aa3051213c </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Mon, 29 Oct 2018 13:08:19 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13380#comment:6 https://svn.boost.org/trac10/ticket/13380#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> In master, closing </p> Ticket