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

            Bug ID: 71164
           Summary: tree check fail at cp/pt.c:12961
           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 38507
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38507&action=edit
gzipped C++ source code

The attached source code, when compiled by gcc dated 20160516, does this:

/home/dcb/rpmbuild/BUILD/freefem++-3.46/mpich/download/include/hpddm/include/operator.hpp:60:18:
internal compiler error: tree check: accessed elt 2 of tree_vec with 1 elts in
tsubst, at cp/pt.c:12961
         template<class Q = Preconditioner> typename
std::enable_if<!has_LDR<typename std::remove_reference<Q>::type>::value,
bool>::type
                  ^~~~~
0x110a135 tree_vec_elt_check_failed(int, int, char const*, int, char const*)
        ../../src/trunk/gcc/tree.c:9950
0x6995f3 tree_vec_elt_check(tree_node const*, int, char const*, int, char
const*)
        ../../src/trunk/gcc/tree.h:3472
0x6c9209 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../src/trunk/gcc/cp/pt.c:12961
0x6c228d tsubst_template_arg
        ../../src/trunk/gcc/cp/pt.c:10374

Reply via email to