https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72766
Bug ID: 72766 Summary: tree check fail in get_len, at tree.h:5303 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 39038 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39038&action=edit gzipped C++ source code The attached C++ code, when compiled by gcc trunk dated 20160801, does this: samplv1_jack.cpp: In member function ‘void samplv1_jack::alsa_capture(snd_seq_event_t*)’: samplv1_jack.cpp:563:66: internal compiler error: tree check: expected integer_cst, have nop_expr in get_len, at tree.h:5303 0x1132d5c tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../src/trunk/gcc/tree.c:9742 0x8b62d1 tree_check(tree_node const*, char const*, int, char const*, tree_code) ../../src/trunk/gcc/tree.h:3279 0x8b62d1 wi::extended_tree<192>::get_len() const ../../src/trunk/gcc/tree.h:5303 0x8b62d1 wi::int_traits<generic_wide_int<wi::extended_tree<192> > >::decompose(long*, unsigned int, generic_wide_int<wi::extended_tree<192> > const&) ../../src/trunk/gcc/wide-int.h:929 0x8b62d1 wide_int_ref_storage<true>::wide_int_ref_storage<generic_wide_int<wi::extended_tree<192> > >(generic_wide_int<wi::extended_tree<192> > const&, unsigned int)