[Bug c++/66067] [5/6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

jamrial at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri May 22 04:53:00 GMT 2015


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

James Almer <jamrial at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|5.1.0                       |
            Summary|[6 Regression] tree check   |[5/6 Regression] tree check
                   |ICE: accessed elt 1 of      |ICE: accessed elt 1 of
                   |tree_vec with 0 elts in     |tree_vec with 0 elts in
                   |write_template_args, at     |write_template_args, at
                   |cp/mangle.c:2574            |cp/mangle.c:2574
      Known to fail|                            |5.1.1

--- Comment #1 from James Almer <jamrial at gmail dot com> ---
While the above file compiles with 4.9.2 and 5.1, the following file fails with
5.1 with a segmentation fault error in the same line (6.0 however also fails
with the tree check ICE).

In file included from
/home/jamrial/range-v3/include/range/v3/range_fwd.hpp:19:0,
                 from /home/jamrial/range-v3/include/range/v3/begin_end.hpp:21,
                 from /home/jamrial/range-v3/include/range/v3/core.hpp:17,
                 from /home/jamrial/range-v3/test/algorithm/rotate.cpp:26:
/home/jamrial/range-v3/include/meta/meta.hpp: In instantiation of ‘constexpr
const size_t
meta::v1::detail::reverse_find_index_<meta::v1::list<meta::v1::defer<meta::v1::and_,
meta::v1::detail::is_valid_<meta::v1::defer<ranges::v3::detail::builtin_common_t,
int* const&, const long int&>, 0>, meta::v1::defer<meta::v1::or_,
std::is_reference<meta::v1::defer<ranges::v3::detail::builtin_common_t, int*
const&, const long int&> >, std::integral_constant<bool, true> > > >, const
long int&>::i’:
/home/jamrial/range-v3/test/algorithm/rotate.cpp:278:1:   required from here
/home/jamrial/range-v3/include/meta/meta.hpp:1645:46: internal compiler error:
Segmentation fault
                  static constexpr std::size_t i = List::size() -
reverse_find<List, T>::size();


More information about the Gcc-bugs mailing list