https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68364
Bug ID: 68364 Summary: ICE in tree_check() Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: a...@cloudius-systems.com Target Milestone: --- Created attachment 36715 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36715&action=edit Test case (derived from ScyllaDB; AGPL) g++6 (GCC) 6.0.0 20151113 (experimental) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 5f3001a9d4fa4beb4418b8e7465a0f0f7349eaea In file included from ./exceptions/exceptions.hh:45:0, from ./compress.hh:24, from ./schema.hh:37, from ./cql3/selection/selectable.hh:45, from ./cql3/selection/writetime_or_ttl.hh:45, from build/release/gen/cql3/CqlParser.hpp:63, from build/release/gen/cql3/CqlParser.cpp:44: ./db/write_type.hh: In function ‘std::ostream& db::operator<<(std::ostream&, const db::write_type&)’: ./db/write_type.hh:58:19: internal compiler error: tree check: expected integer_cst, have nop_expr in get_len, at tree.h:5167 case write_type::SIMPLE: os << "SIMPLE"; break; ^~~~~~ 0xf366dc tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.c:9587 0x825308 tree_check ../../gcc/tree.h:3212 0x825308 wi::extended_tree<192>::get_len() const ../../gcc/tree.h:5167 0x825308 wi::int_traits<generic_wide_int<wi::extended_tree<192> > >::decompose(long*, unsigned int, generic_wide_int<wi::extended_tree<192> > const&) ../../gcc/wide-int.h:898 0x825308 wide_int_ref_storage<generic_wide_int<wi::extended_tree<192> > > ../../gcc/wide-int.h:945 0x825308 generic_wide_int<generic_wide_int<wi::extended_tree<192> > > ../../gcc/wide-int.h:722 0x825308 cmps<generic_wide_int<wi::extended_tree<192> >, generic_wide_int<wi::extended_tree<192> > > ../../gcc/wide-int.h:1900 0x825308 tree_int_cst_compare ../../gcc/tree.h:5236 0x825308 c_add_case_label(unsigned int, splay_tree_s*, tree_node*, tree_node*, tree_node*, tree_node*, bool*) ../../gcc/c-family/c-common.c:6634 0x5b87e3 finish_case_label(unsigned int, tree_node*, tree_node*) ../../gcc/cp/decl.c:3417 0x6d202a cp_parser_label_for_labeled_statement ../../gcc/cp/parser.c:10259 0x6c0030 cp_parser_statement ../../gcc/cp/parser.c:10132 0x6c16ac cp_parser_statement_seq_opt ../../gcc/cp/parser.c:10456 0x6c180e cp_parser_compound_statement ../../gcc/cp/parser.c:10410 0x6ecaec cp_parser_implicitly_scoped_statement ../../gcc/cp/parser.c:11550 0x6c09af cp_parser_selection_statement ../../gcc/cp/parser.c:10632 0x6c09af cp_parser_statement ../../gcc/cp/parser.c:10040 0x6c16ac cp_parser_statement_seq_opt ../../gcc/cp/parser.c:10456 0x6c180e cp_parser_compound_statement ../../gcc/cp/parser.c:10410 0x6e4c5b cp_parser_function_body ../../gcc/cp/parser.c:20225 Please submit a full bug report, with preprocessed source if appropriate. Compile attached file with -std=gnu++1y -march=nehalem (needed due to intrinsics included)