id summary reporter owner description type status milestone component version severity resolution keywords cc 5701 lexertl token_value_type returns const unused for nonconst ref Peter Schueller Hartmut Kaiser "Compiling the following source file creates an error with clang (trunk version): {{{ #include }}} The error (I think clang is right not to accept this code) is: {{{ In file included from bug_unused_const.cpp:1: In file included from /var/lib/buildbot/instdirs/boost-trunk/include/boost/spirit/include/lex_lexertl.hpp:16: In file included from /var/lib/buildbot/instdirs/boost-trunk/include/boost/spirit/home/lex/lexer_lexertl.hpp:16: In file included from /var/lib/buildbot/instdirs/boost-trunk/include/boost/spirit/home/lex/lexer/lexertl/lexer.hpp:20: /var/lib/buildbot/instdirs/boost-trunk/include/boost/spirit/home/lex/lexer/lexertl/token.hpp:143:44: error: binding of reference to type 'token_value_type' (aka 'boost::spirit::unused_type' ) to a value of type 'const boost::spirit::unused_type' drops qualifiers token_value_type& value() { return unused; } ^~~~~~ }}} The token_value_type return value is a nonconst unused_type, whereas unused is a const object of unused_type. This is true both in trunk and release branch." Bugs closed To Be Determined spirit Boost Release Branch Problem fixed