[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

2015-06-02 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067

Markus Trippelsdorf trippels at gcc dot gnu.org changed:

   What|Removed |Added

 CC||trippels at gcc dot gnu.org

--- Comment #3 from Markus Trippelsdorf trippels at gcc dot gnu.org ---
Created attachment 35682
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35682action=edit
Somewhat reduced testcase


[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

2015-05-21 Thread jamrial at gmail dot com
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::listmeta::v1::defermeta::v1::and_,
meta::v1::detail::is_valid_meta::v1::deferranges::v3::detail::builtin_common_t,
int* const, const long int, 0, meta::v1::defermeta::v1::or_,
std::is_referencemeta::v1::deferranges::v3::detail::builtin_common_t, int*
const, const long int , std::integral_constantbool, 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_findList, T::size();

[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

2015-05-21 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067

--- Comment #2 from James Almer jamrial at gmail dot com ---
Created attachment 35594
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35594action=edit
Preprocessed source as generated by -freport-bug, from the second test case