https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65936

            Bug ID: 65936
           Summary: [6 Regression] ICE building libboost_log.so.1.58.0
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamrial at gmail dot com
  Target Milestone: ---

Created attachment 35428
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35428&action=edit
Preprocessed source as generated by -freport-bug

In file included from ./boost/move/utility_core.hpp:29:0,
                 from ./boost/intrusive/list.hpp:39,
                 from libs/log/src/attribute_set.cpp:19:
./boost/log/attributes/attribute_set.hpp: In member function
‘boost::log::v2_mt_posix::attribute_set::operator
boost::rv<boost::log::v2_mt_posix::attribute_set>&()’:
./boost/move/core.hpp:246:56: internal compiler error: canonical types differ
for identical types boost::rv<boost::log::v2_mt_posix::attribute_set>* and
boost::rv<boost::log::v2_mt_posix::attribute_set>*
       {  return *static_cast< ::boost::rv<TYPE>* >(this);  }\
                                                        ^
./boost/log/attributes/attribute_set.hpp:82:5: note: in expansion of macro
‘BOOST_COPYABLE_AND_MOVABLE_ALT’
     BOOST_COPYABLE_AND_MOVABLE_ALT(attribute_set)
     ^
0x746a4e comptypes(tree_node*, tree_node*, int)
        /home/jamrial/gcc-6-20150426/gcc/cp/typeck.c:1428
0x7619de ocp_convert(tree_node*, tree_node*, int, int, int)
        /home/jamrial/gcc-6-20150426/gcc/cp/cvt.c:704
0x607310 convert_like_real
        /home/jamrial/gcc-6-20150426/gcc/cp/call.c:6557
0x612e0b initialize_reference(tree_node*, tree_node*, int, int)
        /home/jamrial/gcc-6-20150426/gcc/cp/call.c:9746
0x750bf2 check_return_expr(tree_node*, bool*)
        /home/jamrial/gcc-6-20150426/gcc/cp/typeck.c:8718
0x78e59e finish_return_stmt(tree_node*)
        /home/jamrial/gcc-6-20150426/gcc/cp/semantics.c:887
0x731cbe cp_parser_jump_statement
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:11057
0x731cbe cp_parser_statement
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:9707
0x732252 cp_parser_statement_seq_opt
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:10095
0x7323ab cp_parser_compound_statement
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:10049
0x7325db cp_parser_function_body
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:19185
0x7325db cp_parser_ctor_initializer_opt_and_function_body
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:19221
0x73341a cp_parser_function_definition_after_declarator
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:23467
0x736a6c cp_parser_late_parsing_for_member
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:24150
0x711c71 cp_parser_class_specifier_1
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:20041
0x711c71 cp_parser_class_specifier
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:20067
0x711c71 cp_parser_type_specifier
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:14707
0x724eff cp_parser_decl_specifier_seq
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:11938
0x7361b1 cp_parser_simple_declaration
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:11515
0x72fe23 cp_parser_block_declaration
        /home/jamrial/gcc-6-20150426/gcc/cp/parser.c:11462
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

-----

This is one of many ICEs i get while compiling libboost_log.so from Boost 1.58
with GCC 6.0.0 (20150426 snapshot) on ArchLinux x86_64. Most if not all seem to
have a similar backtrace, so I'm posting only the first.

Reply via email to