Modify

Opened 4 years ago

Last modified 4 years ago

#9022 new Bugs

regression_file_iterator* test fails with c++11

Reported by: anonymous Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

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

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by viboes

Component: Nonespirit
Owner: set to Joel de Guzman

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Joel de Guzman.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.