Boost C++ Libraries: Ticket #9022: regression_file_iterator* test fails with c++11 https://svn.boost.org/trac10/ticket/9022 <h6 class="section" id="BEGINOUTPUT">BEGIN OUTPUT</h6> <p> lex/regression_file_iterator4.cpp(91): test 'it-&gt;id() == test_data[i]' failed in function 'int main()' lex/regression_file_iterator4.cpp(91): test 'it-&gt;id() == test_data[i]' failed in function 'int main()' lex/regression_file_iterator4.cpp(91): test 'it-&gt;id() == test_data[i]' failed in function 'int main()' lex/regression_file_iterator4.cpp(93): test 'it == end2' failed in function 'int main()' 4 errors detected. </p> <p> EXIT STATUS: 1 </p> <h6 class="section" id="ENDOUTPUT">END OUTPUT</h6> <p> There are warnings during the compilation: lex/regression_file_iterator4.cpp:89:52: required from here ../../../boost/iterator/iterator_adaptor.hpp:306:19: warning: returning reference to temporary [enabled by default] In file included from ../../../boost/spirit/home/lex/lexer/lexertl/functor_data.hpp:17:0, </p> <blockquote> <p> from ../../../boost/spirit/home/lex/lexer/lexertl/lexer.hpp:22, from ../../../boost/spirit/home/lex/lexer_lexertl.hpp:16, from ../../../boost/spirit/include/lex_lexertl.hpp:16, from lex/regression_file_iterator4.cpp:18: </p> </blockquote> <p> ../../../boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp: In static member function 'static std::size_t boost::spirit::lex::lexertl::bas ic_iterator_tokeniser&lt;Iterator&gt;::next(const boost::lexer::basic_state_machine&lt;typename boost::detail::iterator_traits&lt;T&gt;::value_type&gt;&amp;, std::size_t &amp;, bool&amp;, Iterator&amp;, const Iterator&amp;, std::size_t&amp;) [with Iterator = boost::spirit::classic::position_iterator2&lt;boost::spirit::multi_pass&lt;std::istr eambuf_iterator&lt;char, std::char_traits&lt;char&gt; &gt; &gt; &gt;; std::size_t = long unsigned int; typename boost::detail::iterator_traits&lt;T&gt;::value_type = char] ': ../../../boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp:70:22: warning: '&lt;anonymous&gt;' may be used uninitialized in this function [-Wuni nitialized] ../../../boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp:141:17: warning: '&lt;anonymous&gt;' may be used uninitialized in this function [-Wun initialized] In file included from ../../../boost/spirit/home/support/detail/lexer/generator.hpp:9:0, </p> <blockquote> <p> from ../../../boost/spirit/home/lex/lexer/lexertl/lexer.hpp:15, from ../../../boost/spirit/home/lex/lexer_lexertl.hpp:16, from ../../../boost/spirit/include/lex_lexertl.hpp:16, from lex/regression_file_iterator4.cpp:18: </p> </blockquote> <p> ../../../boost/spirit/home/support/detail/lexer/char_traits.hpp:36:42: warning: '&lt;anonymous&gt;' may be used uninitialized in this function [-Wuniniti alized] In file included from ../../../boost/iterator_adaptors.hpp:11:0, </p> <blockquote> <p> from ../../../boost/spirit/home/support/iterators/detail/fixed_size_queue.hpp:16, from ../../../boost/spirit/home/support/iterators/detail/fixed_size_queue_policy.hpp:11, from ../../../boost/spirit/home/support/multi_pass.hpp:31, from ../../../boost/spirit/include/support_multi_pass.hpp:16, from lex/regression_file_iterator4.cpp:16: </p> </blockquote> <p> ../../../boost/iterator/iterator_adaptor.hpp:306:19: note: '&lt;anonymous&gt;' was declared here </p> <hr /> <p> BTW, the test works well if disable c++11 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9022 Trac 1.4.3 viboes Thu, 22 Aug 2013 16:50:30 GMT component changed; owner set https://svn.boost.org/trac10/ticket/9022#comment:1 https://svn.boost.org/trac10/ticket/9022#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Joel de Guzman</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">spirit</span> </li> </ul> Ticket Nikita Kniazev <nok.raven@…> Sun, 24 Dec 2017 21:59:58 GMT <link>https://svn.boost.org/trac10/ticket/9022#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9022#comment:2</guid> <description> <p> There is no info to reproduce the problem. Currently this test passes on supported platforms and compilers <a href="http://www.boost.org/development/tests/develop/developer/spirit.html">http://www.boost.org/development/tests/develop/developer/spirit.html</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Mon, 25 Dec 2017 23:24:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9022#comment:3 https://svn.boost.org/trac10/ticket/9022#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket