Author
anonymous
about 6 years ago
Language
C++
Compiler
gcc HEAD 9.0.1 20190324 (experimental)
Options
Boost 1.69.0
C++14
no pedantic
Raw compiler options
-O3
-Werror=uninitialized
Author
anonymous
about 6 years ago
$ g++ prog.cc -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++14 -O3 -Werror=uninitialized
In file included from /opt/wandbox/boost-1.69.0/gcc-head/include/boost/spirit/home/lex/lexer/lexertl/lexer.hpp:22,
from /opt/wandbox/boost-1.69.0/gcc-head/include/boost/spirit/home/lex/lexer_lexertl.hpp:16,
from /opt/wandbox/boost-1.69.0/gcc-head/include/boost/spirit/include/lex_lexertl.hpp:16,
from prog.cc:1:
/opt/wandbox/boost-1.69.0/gcc-head/include/boost/spirit/home/lex/lexer/lexertl/functor_data.hpp: In function 'bool boost::spirit::lex::tokenize_and_parse(Iterator&, Iterator, const Lexer&, const ParserExpr&) [with Iterator = const char*; Lexer = boost::spirit::lex::lexer<boost::spirit::lex::lexertl::actor_lexer<boost::spirit::lex::lexertl::token<const char*, boost::mpl::vector<int> > > >; ParserExpr = boost::spirit::qi::rule<boost::spirit::lex::lexertl::iterator<boost::spirit::lex::lexertl::functor<boost::spirit::lex::lexertl::token<const char*, boost::mpl::vector<int> >, boost::spirit::lex::lexertl::detail::data, const char*, mpl_::bool_<true>, mpl_::bool_<true> > > >]':
/opt/wandbox/boost-1.69.0/gcc-head/include/boost/spirit/home/lex/lexer/lexertl/functor_data.hpp:276:15: error: '<anonymous>.boost::spirit::lex::lexertl::detail::data<const char*, mpl_::bool_<true>, mpl_::bool_<true>, boost::variant<boost::detail::variant::over_sequence<boost::mpl::l_item<mpl_::long_<2>, boost::iterator_range<const char*>, boost::mpl::l_item<mpl_::long_<1>, int, boost::mpl::l_end> > > > >::end_' is used uninitialized in this function [-Werror=uninitialized]
276 | class data<Iterator, mpl::true_, HasState, TokenValue>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
Exit Code:
1