[Boost-bugs] [Boost C++ Libraries] #9022: regression_file_iterator* test fails with c++11

Subject: [Boost-bugs] [Boost C++ Libraries] #9022: regression_file_iterator* test fails with c++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-21 02:24:08


#9022: regression_file_iterator* test fails with c++11
-----------------------+------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.54.0
 Severity: Problem | Keywords:
-----------------------+------------------------------
 ====== BEGIN OUTPUT ======
 lex/regression_file_iterator4.cpp(91): test 'it->id() == test_data[i]'
 failed in function 'int main()'
 lex/regression_file_iterator4.cpp(91): test 'it->id() == test_data[i]'
 failed in function 'int main()'
 lex/regression_file_iterator4.cpp(91): test 'it->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.

 EXIT STATUS: 1
 ====== END OUTPUT ======

 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,
                  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:
 ../../../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<Iterator>::next(const
 boost::lexer::basic_state_machine<typename
 boost::detail::iterator_traits<T>::value_type>&, std::size_t
 &, bool&, Iterator&, const Iterator&, std::size_t&) [with Iterator =
 boost::spirit::classic::position_iterator2<boost::spirit::multi_pass<std::istr
 eambuf_iterator<char, std::char_traits<char> > > >; std::size_t = long
 unsigned int; typename boost::detail::iterator_traits<T>::value_type =
 char]
 ':
 ../../../boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp:70:22:
 warning: '<anonymous>' may be used uninitialized in this function [-Wuni
 nitialized]
 ../../../boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp:141:17:
 warning: '<anonymous>' may be used uninitialized in this function [-Wun
 initialized]
 In file included from
 ../../../boost/spirit/home/support/detail/lexer/generator.hpp:9:0,
                  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:
 ../../../boost/spirit/home/support/detail/lexer/char_traits.hpp:36:42:
 warning: '<anonymous>' may be used uninitialized in this function
 [-Wuniniti
 alized]
 In file included from ../../../boost/iterator_adaptors.hpp:11:0,
                  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:
 ../../../boost/iterator/iterator_adaptor.hpp:306:19: note: '<anonymous>'
 was declared here


 ----------------------------------------------
 BTW, the test works well if disable c++11

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9022>
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:13 UTC